Skip to main content

GridColumn.AbsoluteIndex Property

Gets or sets the column’s position within the View’s column collection.

Namespace: DevExpress.XtraGrid.Columns

Assembly: DevExpress.XtraGrid.v23.2.dll

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


public int AbsoluteIndex { get; set; }

Property Value

Type Description

An integer value representing the zero-based column index within the collection.


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.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AbsoluteIndex property.


The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also