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

MVCxTreeListColumnCollection<RowType>.Add<ValueType>(Expression<Func<RowType, ValueType>>, Action<MVCxTreeListColumn>) Method

Adds a new column to the collection and allows you to bind this column to a model field via a lambda expression and to customize this column in a delegate method implementation.

Namespace: DevExpress.Web.Mvc

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

Declaration

public MVCxTreeListColumn Add<ValueType>(
    Expression<Func<RowType, ValueType>> expression,
    Action<MVCxTreeListColumn> method
)
Public Function Add(Of ValueType)(
    expression As Expression(Of Func(Of RowType, ValueType)),
    method As Action(Of MVCxTreeListColumn)
) As MVCxTreeListColumn

Parameters

Name Type Description
expression Expression<Func<RowType, ValueType>>

The expression that identifies the data model field to which the column is bound.

method Action<MVCxTreeListColumn>

A delegate method that accepts the created MVCxTreeListColumn as a parameter.

Type Parameters

Name
ValueType

Returns

Type Description
MVCxTreeListColumn

A MVCxTreeListColumn object that is the newly added column.

See Also