ASPxGridViewSettings.GroupFormatForMergedGroup Property
Gets or sets the text pattern for the merged group.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v18.2.dll
Declaration
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 Bootstrap Controls | BootstrapGridView |
|
ASP.NET Web Forms Controls | ASPxGridView |
|
GridViewProperties |
|
|
GridViewSettings |
|
|
GridViewSettings<RowType> |
|
|
MVCxGridView |
|
|
MVCxGridViewProperties |
|
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>
Online demos:
See Also