aspnet-devexpress-dot-web-dot-aspxgridviewbehaviorsettings-3f4812c4.md
Specifis whether data grouping is enabled.
Namespace : DevExpress.Web
Assembly : DevExpress.Web.v25.2.dll
NuGet Package : DevExpress.Web
[DefaultValue(true)]
public bool AllowGroup { get; set; }
<DefaultValue(True)>
Public Property AllowGroup As Boolean
| Type | Default | Description |
|---|---|---|
| Boolean | true |
true to enable data grouping; otherwise, false.
|
You can access this nested property as listed below:
| Object Type | Path to AllowGroup |
|---|---|
| ASPxGridView |
.SettingsBehavior .AllowGroup
| | GridViewProperties |
.SettingsBehavior .AllowGroup
|
ASPxGridView allows you to group its data by multiple columns. A user can group grid data if the ShowGroupPanel property is set to true.
Use the GridViewDataColumnSettings.AllowGroup property to control grouping availability at the column level.
Set the AllowGroup property to false to disable the grouping functionality.
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">
<SettingsBehavior AllowGroup="false">
<%--...--%>
</dx:ASPxGridView>
See Also
ASPxGridViewBehaviorSettings Class