Skip to main content
A newer version of this page is available. .

MVCxGridViewLayoutItemCollection<ModelType>.Add<ValueType>(Expression<Func<ModelType, ValueType>>) Method

Adds a layout item to the MVCxGridViewLayoutItemCollection<ModelType> collection and binds this item to the specified Model field.

Namespace: DevExpress.Web.Mvc

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

Declaration

public MVCxGridViewColumnLayoutItem Add<ValueType>(
    Expression<Func<ModelType, ValueType>> expression
)

Parameters

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

An expression that identifies the object that contains the properties to edit or display.

Type Parameters

Name
ValueType

Returns

Type Description
MVCxGridViewColumnLayoutItem

An MVCxGridViewColumnLayoutItem object that is the newly added layout item.

Remarks

Use the Add<ValueType> method to add a layout item bound to the specified Model field.

Refer to the Binding to Data and Item Manipulation topics to learn more.

See Also