aspnet-devexpress-dot-web-dot-aspxgridviewsettings-2c856212.md
Specifies the text pattern for merged groups.
Namespace : DevExpress.Web
Assembly : DevExpress.Web.v25.2.dll
NuGet Package : DevExpress.Web
[DefaultValue("{0}: {1}")]
public string GroupFormatForMergedGroup { get; set; }
<DefaultValue("{0}: {1}")>
Public Property GroupFormatForMergedGroup As String
| Type | Default | Description |
|---|---|---|
| String | "{0}: {1}" |
The text pattern for merged groups.
|
You can access this nested property as listed below:
| Object Type | Path to GroupFormatForMergedGroup |
|---|---|
| ASPxGridView |
.Settings .GroupFormatForMergedGroup
| | GridViewProperties |
.Settings .GroupFormatForMergedGroup
|
Specify the GroupFormatForMergedGroup property to customize the text pattern for merged groups. This text pattern can include static text and the following predefined placeholders:
{0}The placeholder for the caption of a grouped column.{1}The placeholder for a group row value.
<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>
Run Demo: ASPxGridView - Merging Groups (Web Forms)
Run Demo: GridView - Merging Groups (MVC)
See Also