MVCxGridViewColumnCollection<RowType>.Add<ValueType>(Expression<Func<RowType, 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.v24.2.dll
Declaration
public MVCxGridViewColumn<ValueType> Add<ValueType>(
Expression<Func<RowType, ValueType>> expression
)
Parameters
Name | Type | Description |
---|---|---|
expression | Expression<Func<RowType, ValueType>> | The expression that identifies the data model field to which the column is bound. |
Type Parameters
Name |
---|
ValueType |
Returns
Type | Description |
---|---|
MVCxGridViewColumn<ValueType> | An MVCxGridViewColumn<RowType> object that is the newly added column. |
See Also