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

ASPxGridViewSettings.GroupFormatForMergedGroup Property

Gets or sets the text pattern for the merged group.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v20.2.dll

NuGet Package: DevExpress.Web

Declaration

[DefaultValue("{0}: {1}")]
public string GroupFormatForMergedGroup { get; set; }

Property Value

Type Default Description
String "{0}: {1}"

A String value that specifies the text pattern for the merged group.

Property Paths

You can access this nested property as listed below:

Library Object Type Path to GroupFormatForMergedGroup
ASP.NET Controls and MVC Extensions ASPxGridView
.Settings .GroupFormatForMergedGroup
GridViewProperties
.Settings .GroupFormatForMergedGroup
ASP.NET Bootstrap Controls BootstrapGridView
.Settings .GroupFormatForMergedGroup
ASP.NET MVC Extensions GridViewSettings
.Settings .GroupFormatForMergedGroup
GridViewSettings<RowType>
.Settings .GroupFormatForMergedGroup
MVCxGridView
.Settings .GroupFormatForMergedGroup
MVCxGridViewProperties
.Settings .GroupFormatForMergedGroup

Remarks

Use the GroupFormatForMergedGroup property to customize the text pattern for the merged group. The text pattern can include static text plus predefined placeholders. The {0} character sequence is the placeholder for the merged group’s column caption. The {1} sequence is the placeholder for the merged group’s column value.

<dx:ASPxGridView ID="Grid" runat="server" DataSourceID="CustomersDataSource">
        <Settings GroupFormatForMergedGroupRow="{0} : {1}" GroupFormatForMergedGroup="{0} - {1}" />
        <Columns>
            <dx:GridViewDataColumn FieldName="Country" GroupIndex="0" />
            <dx:GridViewDataColumn FieldName="City" GroupIndex="1" />
            <dx:GridViewDataColumn FieldName="CompanyName" />
            <dx:GridViewDataColumn FieldName="ContactName" />
        </Columns>
        <Settings ShowGroupPanel="true" />
        <SettingsBehavior MergeGroupsMode="Always" AutoExpandAllGroups="true" />
        <GroupSummary>
            <dx:ASPxSummaryItem SummaryType="Count" FieldName="City" />
        </GroupSummary>
    </dx:ASPxGridView>

ASPxGridView-MergedGroups

Online demos:

See Also