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

Adds a layout item to the MVCxGridViewLayoutItemCollection<ModelType> collection and specifies the item's settings and a Model field to which the item is bound.

Namespace: DevExpress.Web.Mvc

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


public MVCxGridViewColumnLayoutItem Add<ValueType>(
    Expression<Func<ModelType, ValueType>> expression,
    Action<MVCxGridViewColumnLayoutItem> method
Public Function Add(Of ValueType)(
    expression As Expression(Of Func(Of ModelType, ValueType)),
    method As Action(Of MVCxGridViewColumnLayoutItem)
) As MVCxGridViewColumnLayoutItem


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

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

method Action<MVCxGridViewColumnLayoutItem>

A delegate method that accepts MVCxGridViewColumnLayoutItem as a parameter.

Type Parameters

Name Description


Type Description

An MVCxGridViewColumnLayoutItem object that is the newly added layout item.


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

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

See Also