Tab

ASPxGridViewSettings.GroupFormatForMergedGroupRow Property

Gets or sets the text pattern for the merged group row.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v20.2.dll

Declaration

[DefaultValue("{0} {1}")]
public string GroupFormatForMergedGroupRow { get; set; }
<DefaultValue("{0} {1}")>
Public Property GroupFormatForMergedGroupRow As String

Property Value

Type Default Description
String

"{0} {1}"

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

Property Paths

You can access this nested property as listed below:

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

Remarks

Use the GroupFormatForMergedGroupRow property to customize the text pattern for the merged group rows. The text pattern can include static text plus predefined placeholders. The {0} character sequence is the placeholder for the merged group row's caption and value. The {1} sequence is the placeholder for the merged group row's summary text.

<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