Skip to main content

GridControl.GroupSummary Property

Gets a collection of group summary items.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v24.2.dll

NuGet Package: DevExpress.Wpf.Grid.Core

Declaration

public GridSummaryItemCollection GroupSummary { get; }

Property Value

Type Description
GridSummaryItemCollection

A collection of group summary items.

Remarks

When you group data against a column, the GridControl displays group summaries in group rows. To add a summary to the GridControl:

  1. Create a GridSummaryItem object and assign it to the GroupSummary collection.
  2. Specify the FieldName and SummaryType properties to apply the summary:
<dxg:GridControl AutoGenerateColumns="AddNew" ItemsSource="{Binding Customers}">
    <dxg:GridControl.GroupSummary>
        <dxg:GridSummaryItem FieldName="Visits" SummaryType="Max"/>
    </dxg:GridControl.GroupSummary>
</dxg:GridControl>

The GridSummaryItem objects are summary items. The GroupSummary collection’s methods allow you to add, remove, and access summary items.

You can access a collection of total summary items with the GridControl.TotalSummary property.

The following code snippets (auto-collected from DevExpress Examples) contain references to the GroupSummary property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also