Skip to main content
A newer version of this page is available. .
Tab

GridViewDataColumnSettings.AllowGroup Property

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

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v21.2.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
True

true. DefaultBoolean.True has a constant value of 0, while the standard true value corresponds to a value of 1. In Visual Basic, do not use implicit conversion of Boolean values to DefaultBoolean, and vice versa, as the conversion may produce incorrect results.

False

false. DefaultBoolean.False has a constant value of 1, while the standard false value corresponds to a value of 0. In Visual Basic, do not use implicit conversion of Boolean values to DefaultBoolean, and vice versa, as the conversion may produce incorrect results.

Default

The default behavior determined by the control’s logic.

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