Skip to main content

GridColumnCollection.AddField(String) Method

Creates a new hidden column which is bound to the specified field, and appends it to the collection.

Namespace: DevExpress.XtraGrid.Columns

Assembly: DevExpress.XtraGrid.v24.1.dll

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

Declaration

public virtual GridColumn AddField(
    string fieldName
)

Parameters

Name Type Description
fieldName String

A String value that specifies the name of the data field to which to bind the created column.

Returns

Type Description
GridColumn

A GridColumn object which represents the new column.

Remarks

Use the GridColumn.VisibleIndex property to control the column’s visibility.

The following code snippets (auto-collected from DevExpress Examples) contain references to the AddField(String) method.

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