MVCxCardViewColumnCollection<CardType>.Add<ValueType>(Expression<Func<CardType, ValueType>>) Method

Adds a new column to the collection and allows you to bind this column to a model field via a lambda expression.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v20.1.dll

Declaration

public MVCxCardViewColumn Add<ValueType>(
    Expression<Func<CardType, ValueType>> expression
)
Public Function Add(Of ValueType)(
    expression As Expression(Of Func(Of CardType, ValueType))
) As MVCxCardViewColumn

Parameters

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

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

Type Parameters

Name
ValueType

Returns

Type Description
MVCxCardViewColumn

An MVCxCardViewColumn object that is the newly added column.

See Also