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.v26.1.dll
NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation
Declaration
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.
See Also