Skip to main content
A newer version of this page is available. .

BandedGridColumn.ColIndex Property

Gets a column’s horizontal position within a band row.

Namespace: DevExpress.XtraGrid.Views.BandedGrid

Assembly: DevExpress.XtraGrid.v18.2.dll

Declaration

[Browsable(false)]
public virtual int ColIndex { get; }

Property Value

Type Description
Int32

An integer value representing the zero-based index of a column within a band row. -1 if the column has no parent band.

Remarks

Use this property to obtain a column’s horizontal position within a band row. The row containing the banded column can be identified by the BandedGridColumn.RowIndex property. This can be useful when it is necessary to get the visible position of a column within a band.

To move a column to a new position within a band, use the AdvBandedGridView.SetColumnPosition method. To move a column to another band, use the column’s BandedGridColumn.OwnerBand property.

See Also