Skip to main content
Tab

GridViewDataColumnSettings.AllowGroup Property

Specifies whether data grouping by the column’s values is enabled.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

[DefaultValue(DefaultBoolean.Default)]
public DefaultBoolean AllowGroup { get; set; }

Property Value

Type Default Description
DefaultBoolean Default

True to enable grouping.
False to disable grouping.
Default to control the column’s behavior at the control level (the ASPxGridViewBehaviorSettings.AllowGroup property).

Available values:

Name Description Return Value
True

The value is true.

0

False

The value is false.

1

Default

The value is specified by a global option or a higher-level object.

2

Property Paths

You can access this nested property as listed below:

Object Type Path to AllowGroup
GridViewDataColumn
.Settings .AllowGroup

Remarks

Specify the AllowGroup property to control grouping at the column level.

If the column’s AllowGroup property is set to Default, the control determines the column’s behavior at the control level based on the ASPxGridViewBehaviorSettings.AllowGroup property value.

For more information on grouping in the grid, refer to the following topic: ASPxGridView - Group Data.

Run Demo: ASPxGridView - Grouping Data

<dx:ASPxGridView ID="grid" runat="server">
    <Columns>
        <dx:GridViewDataTextColumn FieldName="ContactName" VisibleIndex="0" />
        <dx:GridViewDataTextColumn FieldName="CompanyName" VisibleIndex="1">
            <Settings AllowGroup="False" />
        </dx:GridViewDataTextColumn>
        <%--...--%>
    </Columns>
    <Settings ShowGroupPanel="true" />
</dx:ASPxGridView>
See Also