[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Collapse]Windows 10 App Controls
 [Expand]Getting Started
  [Expand]Navigation and Layout
  [Expand]Data Editors
  [Collapse]Data Grid
   [Collapse]Getting Started
     Lesson 1 - Binding to Data
     Lesson 2 - Displaying Summary Information
     Lesson 3 - Displaying Detail Page
   [Expand]Binding to Data
   [Expand]Data Management
   [Expand]Data Editing
   [Expand]Asynchronous Virtual Source
   [Expand]Data Scrolling
   [Expand]Visual Elements
  [Expand]Map Control
  [Expand]PDF Viewer
   SVG Icon
   Context Menu
 [Expand]Themes and Color Schemes
  Get More Help
 [Expand]API Reference
[Expand]Office File API
[Expand]Report and Dashboard Server
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

Lesson 2 - Displaying Summary Information

This lesson shows how to display summary information (Count, Max, Min, Sum, etc.) against individual columns - total summary.

  • Create Total Summaries

    A total summary is an aggregate function value calculated over all data rows within a grid and displayed within the Fixed Summary Panel. Summaries within the Fixed Summary Panel are always displayed onscreen and not horizontally scrolled.

    Total summaries are represented by SummaryItemBase objects and stored within the GridControl.TotalSummary collection.

    Create two summary items. One item to display the total number of rows within the grid, another item to display the maximum product price.


    Total summaries can be displayed either to the summary panel's left or right. The horizontal alignment is specified by the SummaryItemBase.Alignment property.

  • Display Summary Information

    Set the grid's DataControlBase.ShowFixedTotalSummary property to true to display the fixed summary panel.

  • Result

    Run the application. The image below shows the result.

Expanded See Also

Is this topic helpful?​​​​​​​