GridControl.GroupSummary Property

Gets a collection of group summary items.

Namespace: DevExpress.Xpf.Grid

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

Declaration

public GridSummaryItemCollection GroupSummary { get; }
Public ReadOnly Property GroupSummary As GridSummaryItemCollection

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.

Implements

DevExpress.Xpf.Data.IDataProviderOwner.GroupSummary
See Also