GridColumn.AbsoluteIndex Property

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

Namespace: DevExpress.XtraGrid.Columns

Assembly: DevExpress.XtraGrid.v20.1.dll

Declaration

[Browsable(false)]
public int AbsoluteIndex { get; set; }
<Browsable(False)>
Public Property AbsoluteIndex As Integer

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.

See Also