GridColumn.AbsoluteIndex Property
Gets or sets the column’s position within the View’s column collection.
Namespace: DevExpress.XtraGrid.Columns
Assembly: DevExpress.XtraGrid.v25.1.dll
NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation
Declaration
Property Value
Type | Description |
---|---|
Int32 | An integer value representing the zero-based column index within the collection. |
Remarks
Use the property to obtain the column’s position within the ColumnView.Columns collection or to move it to a new position. Note that this doesn’t affect the column’s visible position within the View. See the GridColumn.VisibleIndex, GridBandColumnCollection.MoveTo and AdvBandedGridView.SetColumnPosition members description for details on changing the visual order of columns in different View types.
You can access a column by its absolute index via the View’s ColumnView.Columns collection. Absolute indexes are also returned by the column collection’s GridColumnCollection.IndexOf method.