MVCxFormLayoutItemCollection<ModelType>.AddGroupItem<ValueType>(Expression<Func<ModelType, ValueType>>) Method

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

Namespace: DevExpress.Web.Mvc

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

Declaration

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

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 Description
ValueType

Returns

Type Description
MVCxFormLayoutGroup<ModelType>

An MVCxFormLayoutGroup<ModelType> object that is the newly added layout group.

Remarks

Use the AddGroupItem<ValueType> method to add a layout group bound to the specified Model field.

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

See Also