Skip to main content

MVCxCardViewColumnCollection<CardType>.Add<ValueType>(Expression<Func<CardType, ValueType>>, Action<MVCxCardViewColumn>) 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.v23.2.dll

NuGet Package: DevExpress.Web.Mvc5

Declaration

public MVCxCardViewColumn Add<ValueType>(
    Expression<Func<CardType, ValueType>> expression,
    Action<MVCxCardViewColumn> method
)

Parameters

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

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

method Action<MVCxCardViewColumn>

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

Type Parameters

Name
ValueType

Returns

Type Description
MVCxCardViewColumn

An MVCxCardViewColumn object that is the newly added column.

See Also