[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
  Prerequisites
 [Expand]Getting Started
 [Collapse]Controls
  [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]Grouping
    [Expand]Filtering and Searching
    [Expand]Sorting
   [Expand]Data Editing
   [Expand]Validation
   [Expand]Asynchronous Virtual Source
   [Expand]Data Scrolling
   [Expand]Visual Elements
   [Expand]Examples
  [Expand]Charts
  [Expand]Map Control
  [Expand]Gauges
  [Expand]PDF Viewer
  [Expand]Scheduler
   SVG Icon
   Context Menu
 [Expand]Themes and Color Schemes
  Localization
  Get More Help
 [Expand]API Reference
[Expand]Office File API
[Expand]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush
[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?​​​​​​​