Back to Devexpress

ASPxGridViewSettings.GroupFormat Property

aspnet-devexpress-dot-web-dot-aspxgridviewsettings-dae46dbd.md

latest2.4 KB
Original Source

ASPxGridViewSettings.GroupFormat Property

Specifies the text pattern for group rows.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

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

Property Value

TypeDefaultDescription
String"{0}: {1} {2}"

The text pattern for group rows.

|

Property Paths

You can access this nested property as listed below:

Object TypePath 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.

aspx
<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

ASPxGridViewSettings Class

ASPxGridViewSettings Members

DevExpress.Web Namespace