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

MVCxTreeListColumnCollection.Add(String, String, MVCxTreeListColumnType) Method

Creates a new column with the specified settings and adds it to the collection.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v18.2.dll

Declaration

public MVCxTreeListColumn Add(
    string fieldName,
    string caption,
    MVCxTreeListColumnType columnType
)
Public Function Add(
    fieldName As String,
    caption As String,
    columnType As MVCxTreeListColumnType
) As MVCxTreeListColumn

Parameters

Name Type Description
fieldName String

A String value that specifies the name of a data field assigned to the current column. This value is assigned to the TreeListDataColumn.FieldName property.

caption String

A String value that specifies the text displayed within the column's header. This value is assigned to the WebColumnBase.Caption property.

columnType MVCxTreeListColumnType

One of the MVCxTreeListColumn enumeration values specifying the type of the column. This value is assigned to the MVCxTreeListColumn.ColumnType property.

Returns

Type Description
MVCxTreeListColumn

An MVCxTreeListColumn object that is the newly created column.

See Also