A newer version of this page is available. Switch to the current version.

GridColumn.ColumnHandle Property

Gets or sets the column's bound data field by its index within the associated data source.

Namespace: DevExpress.XtraGrid.Columns

Assembly: DevExpress.XtraGrid.v19.2.dll


public int ColumnHandle { get; set; }
Public Property ColumnHandle As Integer

Property Value

Type Description

An integer value specifying the bound data field's zero-based index.


Read the ColumnHandle property value to obtain the bound column's index. Assign a value to this property to bind the column to a data field. If the assigned value is negative or exceeds the last available index, the assignment has no effect.

Note: a more convenient data binding mechanism is to use the GridColumn.FieldName property. This property allows you to specify the column's bound field by its name.

See Also