aspnet-devexpress-dot-web-dot-aspxgridviewsettings-dae46dbd.md
Specifies the text pattern for group rows.
Namespace : DevExpress.Web
Assembly : DevExpress.Web.v25.2.dll
NuGet Package : DevExpress.Web
[DefaultValue("{0}: {1} {2}")]
public string GroupFormat { get; set; }
<DefaultValue("{0}: {1} {2}")>
Public Property GroupFormat As String
| Type | Default | Description |
|---|---|---|
| String | "{0}: {1} {2}" |
The text pattern for group rows.
|
You can access this nested property as listed below:
| Object Type | Path to GroupFormat |
|---|---|
| ASPxGridView |
.Settings .GroupFormat
| | GridViewProperties |
.Settings .GroupFormat
|
Specify the GroupFormat property to customize the text pattern for group rows. This 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.{2}The placeholder for a group row summary.
<dx:ASPxGridView ID="grid" runat="server" AutoGenerateColumns="false">
<Columns>
<dx:GridViewDataTextColumn FieldName="Country" VisibleIndex="0" />
<dx:GridViewDataTextColumn FieldName="ContactName" VisibleIndex="1" />
<%--...--%>
</Columns>
<Settings ShowGroupPanel="true" GroupFormat="{0} - {1} : {2}"/>
<GroupSummary>
<dx:ASPxSummaryItem SummaryType="Count" FieldName="Contact Name" />
</GroupSummary>
</dx:ASPxGridView>
See Also