Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxGridBand.RootIndex Property

Specifies the band’s position among the View’s root bands.

#Declaration

Delphi
property RootIndex: Integer read; write;

#Property Value

Type
Integer

#Remarks

Use the RootIndex property to specify the current band’s horizontal position within the collection of the View’s root bands. The collection can be accessed via the Bands.RootItems property. To access all visible root bands within a View, see Bands.VisibleRootItems.

The RootIndex property is applicable to root bands only. For all other bands, this property returns -1.

End-users can change a band’s position by clicking the band header and dragging it to the required position. Moving bands can be restricted by setting the Band.Options.Moving or the BandedTableView.OptionsCustomize.BandMoving properties to False.

See Also