Skip to main content
Tab

ASPxGridViewBehaviorSettings.MergeGroupsMode Property

Specifies whether merged grouping is enabled.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

[DefaultValue(GridViewMergeGroupsMode.Disabled)]
public GridViewMergeGroupsMode MergeGroupsMode { get; set; }

Property Value

Type Default Description
GridViewMergeGroupsMode Disabled

One of the GridViewMergeGroupsMode enumeration values.

Available values:

Name Description
Disabled

Groups within the grid are not merged.

Always

Groups within the grid are merged automatically.

Property Paths

You can access this nested property as listed below:

Object Type Path to MergeGroupsMode
ASPxGridView
.SettingsBehavior .MergeGroupsMode
GridViewProperties
.SettingsBehavior .MergeGroupsMode

Remarks

In the grid, you can implement merged grouping to allow users to group data by multiple columns at a time. To enable this behavior, set the MergeGroupsMode property to Always.

ASPxGridView-MergedGroups

<dx:ASPxGridView ID="Grid" runat="server" >
    <%--...--%>
    <Settings ShowGroupPanel="true" />
    <SettingsBehavior MergeGroupsMode="Always" AutoExpandAllGroups="true" />
</dx:ASPxGridView>

Online Demos

Run Demo: ASPxGridView - Merging Groups (Web Forms)

Run Demo: GridView - Merging Groups (MVC)

See Also