Skip to main content

Lesson 5 - Display Summaries

  • 2 minutes to read

This tutorial demonstrates how to display summaries for groups of rows (group summary) or individual data columns (total summary). The tutorial is based on Lesson 4.

WPF Data Grid - Get Started Summaries

The GridControl can calculate the following summaries:

  • The number of data rows (Count)
  • The maximum and minimum values (Max and Min)
  • The sum and the average value (Sum and Average)
  • Custom summaries

Total Summary

  1. Select the GridControl and invoke its Quick Actions menu.
  2. Click the Show Feature Browser button:

    WPF Grid - Show Feature Browser

  3. In the Feature Browser window, go to Data ShapingTotal Summaries.

  4. Click the GridControl and ensure that the DataViewBase.ShowFixedTotalSummary property is set to true. This property displays the Fixed Summary Panel.

    Feature Browser - Show Total Summary

  5. Click the Add button to create a GridSummaryItem object and assign it to the GridControl.TotalSummary collection.

  6. Specify the FieldName and SummaryType properties to apply the summary.
  7. Set the Alignment property to Left to display the summary on the left side of the Fixed Summary Panel.

Data Grid Feature Browser - Total Summary

Group Summary

  1. Open the Feature Browser window and go to Data ShapingGroup Summaries.
  2. Click the Add button to create a GridSummaryItem object and assign it to the GridControl.GroupSummary collection.
  3. Specify the FieldName and SummaryType properties to apply the summary.
  4. Specify the DisplayFormat property to display the group summary in the currency format.

Data Grid Feature Browser - Group Summary

Refer to the following help topic for information on how users can create and customize summaries: Edit Summaries.

See Also