MVCxGridViewLayoutItemCollection<ModelType>.AddGroupItem<ValueType>(Expression<Func<ModelType, ValueType>>, Action<MVCxGridViewLayoutGroup<ModelType>>) 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.v19.2.dll


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


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

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

method Action<MVCxGridViewLayoutGroup<ModelType>>

A delegate method that accepts MVCxGridViewLayoutGroup<ModelType> as a parameter.

Type Parameters

Name Description


Type Description

An MVCxGridViewLayoutGroup<ModelType> object that is the newly added layout item.


Use the AddGroupItem<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