Back to Devexpress

ASPxGridViewBehaviorSettings.AllowGroup Property

aspnet-devexpress-dot-web-dot-aspxgridviewbehaviorsettings-3f4812c4.md

latest2.4 KB
Original Source

ASPxGridViewBehaviorSettings.AllowGroup Property

Specifis whether data grouping is enabled.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue(true)]
public bool AllowGroup { get; set; }
vb
<DefaultValue(True)>
Public Property AllowGroup As Boolean

Property Value

TypeDefaultDescription
Booleantrue

true to enable data grouping; otherwise, false.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to AllowGroup
ASPxGridView

.SettingsBehavior .AllowGroup

| | GridViewProperties |

.SettingsBehavior .AllowGroup

|

Remarks

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

aspx
<dx:ASPxGridView ID="grid" runat="server">
    <SettingsBehavior AllowGroup="false">
    <%--...--%>
</dx:ASPxGridView>

See Also

ASPxGridViewBehaviorSettings Class

ASPxGridViewBehaviorSettings Members

DevExpress.Web Namespace