Skip to main content
Tab

ASPxGridViewSettings.GroupFormat Property

Specifies the text pattern for group rows.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.2.dll

NuGet Package: DevExpress.Web

#Declaration

[DefaultValue("{0}: {1} {2}")]
public string GroupFormat { get; set; }

#Property Value

Type Default Description
String "{0}: {1} {2}"

The text pattern for group rows.

#Property Paths

You can access this nested property as listed below:

Object Type Path to GroupFormat
ASPxGridView
.Settings .GroupFormat
GridViewProperties
.Settings .GroupFormat

#Remarks

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.

ASPxGridView - GroupFormat

<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