Skip to main content
A newer version of this page is available. .

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

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.

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

Note

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