Back to Devexpress

GridBand.Index Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-bandedgrid-dot-gridband-14e9796f.md

latest2.4 KB
Original Source

GridBand.Index Property

Gets the band’s position within the owning collection.

Namespace : DevExpress.XtraGrid.Views.BandedGrid

Assembly : DevExpress.XtraGrid.v25.2.dll

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

Declaration

csharp
[Browsable(false)]
public virtual int Index { get; }
vb
<Browsable(False)>
Public Overridable ReadOnly Property Index As Integer

Property Value

TypeDescription
Int32

A zero-based integer representing the band’s position.

|

Remarks

Bands can reside either within a View’s BandedGridView.Bands collection or within another band’s GridBand.Children collection.

The order of bands within the collection defines their visual order. Note, however, that the Index property may not match the actual band’s visible position since some bands may be hidden. To determine a band’s actual visible position, read its GridBand.VisibleIndex property. To rearrange bands, use the GridBandCollection.MoveTo method of the owning band collection.

See Also

Visible

VisibleIndex

MoveTo(Int32, GridBand)

GridBand Class

GridBand Members

DevExpress.XtraGrid.Views.BandedGrid Namespace