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.v20.1.dll

Declaration

public virtual GridColumn AddField(
    string fieldName
)
Public Overridable Function AddField(
    fieldName As String
) As GridColumn

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