Skip to main content

LayoutViewColumnCollection.AddField(String) Method

Creates a new column (card field) which is bound to the specified field and appends it to the collection.

Namespace: DevExpress.XtraGrid.Columns

Assembly: DevExpress.XtraGrid.v24.2.dll

Declaration

public LayoutViewColumn AddField(
    string fieldName
)

Parameters

Name Type Description
fieldName String

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

Returns

Type Description
LayoutViewColumn

A LayoutViewColumn object which represents the new column.

Remarks

When a column object is created, a corresponding LayoutViewField object is created. LayoutViewField objects define the layout of fields within the card.

Newly created columns are initially hidden. To make them visible, use the LayoutViewColumn.Visible property or the Move method of a corresponding LayoutViewField object.

See Also