Skip to main content

BandedGridColumn.RowIndex Property

Gets or sets the vertical position of a banded column.

Namespace: DevExpress.XtraGrid.Views.BandedGrid

Assembly: DevExpress.XtraGrid.v22.2.dll

NuGet Package: DevExpress.Win.Grid


public virtual int RowIndex { get; set; }

Property Value

Type Default Description
Int32 0

An integer value representing the zero-based index of the band row where a column header is displayed.


Use the RowIndex property to specify the vertical position of the column header within a band. Note that this value also specifies the vertical position of column cells within rows. Setting the RowIndex property to negative values results in assigning zero. Setting the property to a value greater than the last available index results in creating an additional row and placing the column header into it.

Banded Grid Views do not support multiple row column layouts. Thus, the RowIndex property of columns owned by such Views is always 0. The RowIndex property can be used only for columns owned by Advanced Banded Grid Views.

You can also change the column position within a parent band using the AdvBandedGridView.SetColumnPosition method. To move a column to another band, use the column’s BandedGridColumn.OwnerBand property.

See Also