Back to Devexpress

ASPxGridViewSettings.GroupFormatForMergedGroupRow Property

aspnet-devexpress-dot-web-dot-aspxgridviewsettings-1c2d50c6.md

latest2.9 KB
Original Source

ASPxGridViewSettings.GroupFormatForMergedGroupRow Property

Specifies the text pattern for merged group rows.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

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

Property Value

TypeDefaultDescription
String"{0} {1}"

The text pattern for merged group rows.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to GroupFormatForMergedGroupRow
ASPxGridView

.Settings .GroupFormatForMergedGroupRow

| | GridViewProperties |

.Settings .GroupFormatForMergedGroupRow

|

Remarks

Specify the GroupFormatForMergedGroupRow property to customize the text pattern for merged group rows. This pattern can include static text and the following predefined placeholders:

{0}The placeholder for the caption of a grouped column and a group row value.{1}The placeholder for a group row summary.

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

Online Demos

Run Demo: ASPxGridView - Merging Groups (Web Forms)

Run Demo: GridView - Merging Groups (MVC)

See Also

ASPxGridViewSettings Class

ASPxGridViewSettings Members

DevExpress.Web Namespace