Skip to main content

TableGroupContainerLayoutBuilder<T>.EndGroupContainer() Method

Moves the method call chain one level higher.

Namespace: DevExpress.Mvvm.DataAnnotations

Assembly: DevExpress.Mvvm.v24.1.dll

NuGet Packages: DevExpress.Mvvm, DevExpress.Win.Navigation

Declaration

public TableGroupContainerLayoutBuilder<T> EndGroupContainer()

Returns

Type Description
TableGroupContainerLayoutBuilder<T>

The table group container builder instance.

Remarks

The EndGroupContainer method is recognized by the GridControl, TreeListControl and PropertyGridControl.

Use the EndGroupContainer method to move the method call chain from a group to a table group container builder. See the example below.

void IMetadataProvider<DataAnnotations_FluentAPI>.BuildMetadata(MetadataBuilder<DataAnnotations_FluentAPI> builder) {
            builder.TableLayout()
                .Group("Product Details")
                    .ContainsProperty(p => p.ProductCategory)
                    .ContainsProperty(p => p.ProductName)
                .EndGroup()
                .GroupContainer("Order Details")
                    .Group("Main")
                        .ContainsProperty(p => p.CustomerName)
                        .ContainsProperty(p => p.OrderDate)
                    .EndGroup()
                .EndGroupContainer();
        }
See Also