DxDataGridColumn.AllowGroup Property

Specifies whether users can group grid data by this column.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v21.1.dll

Declaration

[Parameter]
[DefaultValue(true)]
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

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(Vacancy.Id)" AllowGroup="false" />
    ...
</DxDataGrid>
NOTE

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

Online Demo

Data Grid - Grouping

See Also