Skip to main content

DxDataGridColumn.AllowGroup Property

Specifies whether users can group grid data by this column.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v22.1.dll

Declaration

[DefaultValue(true)]
[Parameter]
public bool AllowGroup { get; set; }

Property Value

Type Default Description
Boolean true

true to allow users to group the grid by this column; otherwise, false.

Remarks

Important

The Data Grid was moved to maintenance support mode. No new features/capabilities will be added to this component. We recommend that you migrate to the Grid component.

If the Data Grid’s ShowGroupPanel and AllowColumnDragDrop properties are set to true, users can drag column headers onto the Group Panel to group data.

Use the AllowGroup property to disable grouping by individual columns. If a column’s AllowGroup property is set to false, users cannot drag the column header onto the Group Panel.

<DxDataGrid Data="@Vacancies" ShowGroupPanel="true">
    <DxDataGridColumn Field="@nameof(Customer.ContactName)" AllowGroup="false" />
    @* ... *@
</DxDataGrid>

Note

You can use the column’s GroupIndex property to group data in code regardless of the AllowGroup property value.

Run Demo: Data Grid - Grouping

See Also