[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
   [Expand]Getting Started
   [Expand]Binding to Data
   [Collapse]Data Management
    [Collapse]Data Summaries
      Total Summary
      Custom Summary
      Group Summary
    [Expand]Filtering and Searching
   [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)

Total Summary

Expanded Total Summary Overview

A total summary represents a value of an aggregate function calculated over all data rows displayed within a grid. Total summaries are displayed within the Fixed Summary Panel, provided that the DataControlBase.ShowFixedTotalSummary option is enabled. Summaries displayed within the Fixed Summary Panel are not horizontally scrolled and are always visible onscreen, regardless of the corresponding column's position and visibility.

Expanded Displaying Total Summaries

The grid stores its total summaries within the GridControl.TotalSummary collection.

To create a total summary item at design time, use the TotalSummary Collection Editor.

Total summary items are displayed within the Fixed Summary Panel by default. Use the SummaryItemBase.Alignment property to specify whether to align the summary item to the Left or Right. If this property is set to 'Default', a summary item is displayed on the right of the Fixed Summary Panel.

To create a total summary in code, create a new instance of the SummaryItemBase class, specify its SummaryItemBase.FieldName and SummaryItemBase.SummaryType properties, and add it to the GridControl.TotalSummary collection.

Expanded Obtaining Summary Values

To obtain a total summary value, use the DataControlBase.GetTotalSummaryValue method.

Use the DataControlBase.FixedSummariesLeft and DataControlBase.FixedSummariesRight properties to obtain total summaries aligned to the Left or to the Right, respectively.

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