Skip to main content

GridColumnCollection.Item[String] Property

Gets a column by the field name.

Namespace: DevExpress.Mobile.DataGrid

Assembly: DevExpress.Mobile.Grid.v18.2.dll

Declaration

public GridColumn this[string fieldName] { get; }

Parameters

Name Type Description
fieldName String

A string value specifying the column’s field name.

Property Value

Type Description
GridColumn

A GridColumn descendant whose GridColumn.FieldName property value matches the specified field. null if the collection does not contain a column with the specified field.

Remarks

Important

This documentation topic describes legacy technology. We no longer develop new functionality for the GridControl and suggest that you use the new DataGridView control instead.

The property uses the GridColumnCollection.GetColumnByFieldName method internally.

For details on how to access individual columns from the collection, see Identify and Access Columns.

See Also