A newer version of this page is available. Switch to the current version.

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


public LayoutViewColumn AddField(
    string fieldName
Public Function AddField(
    fieldName As String
) As LayoutViewColumn


Name Type Description
fieldName String

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


Type Description

A LayoutViewColumn object which represents the new column.


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