Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.v24.2.dll

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

#Declaration

[Browsable(false)]
public int ColumnHandle { get; set; }

#Property Value

Type Description
Int32

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

#Remarks

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