Skip to main content

TableGroupLayoutBuilder<T>.EndGroup() Method

Moves the method call chain from the group builder to the table group container builder.

Namespace: DevExpress.Mvvm.DataAnnotations

Assembly: DevExpress.Mvvm.v23.2.dll

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

Declaration

public TableGroupContainerLayoutBuilder<T> EndGroup()

Returns

Type Description
TableGroupContainerLayoutBuilder<T>

The table group container builder instance.

Remarks

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

Use the EndGroup method to move the method call chain from a group to 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