Skip to main content

MVCxVerticalGridRowCollection<ColumnType>.AddCategory<ValueType>(Expression<Func<ColumnType, ValueType>>, Action<MVCxVerticalGridCategoryRow<ColumnType>>) Method

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

Namespace: DevExpress.Web.Mvc

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

Declaration

public MVCxVerticalGridCategoryRow<ColumnType> AddCategory<ValueType>(
    Expression<Func<ColumnType, ValueType>> expression,
    Action<MVCxVerticalGridCategoryRow<ColumnType>> method
)

Parameters

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

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

method Action<MVCxVerticalGridCategoryRow<ColumnType>>

A delegate method that accepts the created MVCxVerticalGridCategoryRow<ColumnType> as a parameter.

Type Parameters

Name
ValueType

Returns

Type Description
MVCxVerticalGridCategoryRow<ColumnType>

A MVCxVerticalGridCategoryRow<ColumnType> object that is the newly added category row.

See Also