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

BandedGridColumn.ColIndex Property

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

Namespace: DevExpress.XtraGrid.Views.BandedGrid

Assembly: DevExpress.XtraGrid.v24.2.dll

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

#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