Group Summary

 
Country
City
Company Name Unit Price Quantity Total
Country: Argentina (Count: 34, Sum of Total: $8,158.00)
Country: Austria (Count: 125, Sum of Total: $139,924.00)
Country: Belgium (Count: 56, Sum of Total: $35,122.00)
Country: Brazil (Count: 203, Sum of Total: $115,121.00)
Country: Canada (Count: 75, Sum of Total: $55,358.00)
Country: Denmark (Count: 46, Sum of Total: $34,800.00)
Country: Finland (Count: 54, Sum of Total: $19,780.00)
Country: France (Count: 184, Sum of Total: $85,624.00)
Country: Germany (Count: 328, Sum of Total: $244,614.00)
Country: Ireland (Count: 55, Sum of Total: $57,393.00)

Group summaries are calculated across all rows within a group and displayed in the group row or group footer. To create group summaries, declare DxGridSummaryItem objects in the GroupSummary template.

You can use the following DxGridSummaryItem properties:

  • SummaryType — Specifies the function type (Sum, Min, Max, Avg, or Count).
  • FieldName — Specifies the name of the data field whose values are used to calculate the summary. The Min and Max functions support data fields whose values can be compared. The Avg and Sum functions work with numeric fields only. For the Count function, you do not need to set this property.
  • DisplayText — Specifies display text pattern for the summary item. A display text string can include static text and placeholders for summary value and column caption.
  • ValueDisplayFormat — Specifies the pattern used to format the summary value. If you do not define this property, the summary applies the format from the column bound to the same data field (FieldName. For more information about supported formats, see the following help topic: Format types in .NET.
  • FooterColumnName — Specifies the name of the group footer column that displays the summary value. If you do not define this property, the summary value is displayed in the group row.
  • Visible — Allows you to show/hide individual summary items.

In this demo, group rows display the number of rows and total prices within groups.