Log In
[Expand]Welcome to DevExpress .NET Documentation
[Expand]WinForms Controls
[Collapse]ASP.NET Controls and MVC Extensions
 [Expand]What's Installed
 [Expand]Common Concepts
 [Collapse]ASP.NET WebForms Controls
   Getting Started
  [Expand]Chart Control
  [Collapse]Grid View
   [Expand]Product Information
    Getting Started
    [Expand]Binding to Data
    [Expand]Data Representation Basics
    [Expand]Focus and Navigation
    [Expand]Data Editing
    [Collapse]Data Shaping and Manipulation
     [Collapse]Data Summaries
       Predefined Aggregate Functions
       Group Summary
       Total Summary
       Obtain Summary Values
       Custom Aggregate Functions
      Cell Merging
    [Expand]Data Formatting
    [Expand]Master-Detail Relationship
     Appearance Customization
     Save and Restore Layout
    ASPxGridView Designer
   [Expand]Visual Elements
   [Expand]Member Tables
   [Expand]ASPxGridView - Animated Images
  [Expand]Card View
  [Expand]Vertical Grid
  [Expand]Rich Text Editor
  [Expand]Image and Data Browsing
  [Expand]Docking and Popups
  [Expand]Site Navigation and Layout
  [Expand]File Management
  [Expand]Multi-Use Site Controls
  [Expand]HTML Editor
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Data Editors
  [Expand]Spell Checker
  [Expand]Query Builder
 [Expand]ASP.NET MVC Extensions
 [Expand]Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Expand]Report Server
[Expand]eXpressApp Framework
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Obtain Summary Values

ASPxGridView supports two types of summaries: Total Summary and Group Summary. This topic provides information on how to obtain summary values in code.

Expanded Obtain Total Summary Value

ASPxGridView stores its total summary items within the ASPxGridView.TotalSummary collection. To obtain the required summary item's value, use the ASPxGridView.GetTotalSummaryValue method.

To obtain the total summary item's display text, use the ASPxSummaryItem.GetTotalFooterDisplayText method.

Expanded Obtain Group Summary Value

Group summary items are stored within the ASPxGridView.GroupSummary collection. Use the ASPxGridView.GetGroupSummaryValue method to obtain the required summary item's value calculated against the specified group of rows.

To get the summary text displayed within the specified group row, use the ASPxGridView.GetGroupRowSummaryText method.

Expanded See Also

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