Back to Devexpress

GridBandCollection.GetVisibleBand(GridBand) Method

windowsforms-devexpress-dot-xtragrid-dot-views-dot-bandedgrid-dot-gridbandcollection-dot-getvisibleband-x28-devexpress-dot-xtragrid-dot-views-dot-bandedgrid-dot-gridband-x29.md

latest2.4 KB
Original Source

GridBandCollection.GetVisibleBand(GridBand) Method

Searches for a visible band starting from a specified band.

Namespace : DevExpress.XtraGrid.Views.BandedGrid

Assembly : DevExpress.XtraGrid.v25.2.dll

NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation

Declaration

csharp
public virtual GridBand GetVisibleBand(
    GridBand band
)
vb
Public Overridable Function GetVisibleBand(
    band As GridBand
) As GridBand

Parameters

NameTypeDescription
bandGridBand

A GridBand object specifying the band from which the search is started.

|

Returns

TypeDescription
GridBand

A GridBand object representing the found band. null ( Nothing in Visual Basic) if no visible band is found.

|

Remarks

If the specified band’s GridBand.Visible property value is true , the method returns this band. Otherwise, the method searches forward through the collection and returns the first visible band found.

See Also

FirstVisibleBand

LastVisibleBand

VisibleBandCount

GridBandCollection Class

GridBandCollection Members

DevExpress.XtraGrid.Views.BandedGrid Namespace