Back to Devexpress

GridColumn.AbsoluteIndex Property

windowsforms-devexpress-dot-xtragrid-dot-columns-dot-gridcolumn-9feacd6b.md

latest2.9 KB
Original Source

GridColumn.AbsoluteIndex Property

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

Namespace : DevExpress.XtraGrid.Columns

Assembly : DevExpress.XtraGrid.v25.2.dll

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

Declaration

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

Property Value

TypeDescription
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

Columns

IndexOf(GridColumn)

Name

VisibleColumns

VisibleIndex

GridColumn Class

GridColumn Members

DevExpress.XtraGrid.Columns Namespace