GridControl.GroupSummaryGeneratorTemplate Property

Gets or sets a template that describes group summaries. This is a dependency property.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v21.1.dll


public DataTemplate GroupSummaryGeneratorTemplate { get; set; }

Property Value

Type Description

The summary item template.


You can define group summaries in a ViewModel and display them in the GridControl. To do this, follow the steps below:

  1. Create a collection of group summaries in a ViewModel and specify a data template that generates summaries.

  2. Assign the group summary collection to the GroupSummarySource property and the summary template to the GroupSummaryGeneratorTemplate property:

    <dxg:GridControl ...
                     GroupSummarySource="{Binding GroupSummary}"
                     GroupSummaryGeneratorTemplate="{StaticResource SummaryTemplate}"/>

Refer to the following help topic for more information: How to: Bind the Grid to Total and Group Summaries.

See Also