[Expand]General Information
[Collapse]WinForms Controls
  Prerequisites
 [Expand]What's Installed
 [Expand]Build an Application
 [Collapse]Controls and Libraries
  [Expand]Forms and User Controls
  [Expand]Messages, Notifications, and Dialogs
  [Expand]Editors and Simple Controls
  [Expand]Ribbon, Bars and Menu
  [Expand]Application UI Manager
  [Expand]Docking Library
  [Expand]Data Grid
  [Expand]Vertical Grid
  [Expand]Property Grid
  [Collapse]Pivot Grid
   [Expand]Getting Started
   [Expand]Fundamentals
   [Expand]Binding to Data
   [Expand]Data Shaping
   [Expand]Data Analysis
   [Expand]Layout
   [Expand]Focus and Navigation
   [Expand]Printing and Exporting
   [Expand]Appearance
   [Expand]Design-Time Features
   [Expand]Miscellaneous
   [Collapse]UI Elements
     Cell
     Column Field
     Column Header Area
     Data Area
     Data Field
     Data Field Summary Change Menu
     Data Header Area
     Empty Area
     Expand Button
     Field Header
     Field Header Context Menu
     Field Value
     Field Value Context Menu
     Filter Button and Popup
     Filter Field
     Filter Header Area
     Filter Header Area Separator
     Grand Totals
     Header Area
     Header Area Context Menu
     Filter Panel
     Row Field
     Row Header Area
     Summary Filter Popup Window
     Totals
   [Expand]End-User Capabilities
   [Expand]Examples
  [Expand]Member Tables
  [Expand]Tree List
  [Expand]Chart Control
  [Expand]Diagrams
  [Expand]Gauges
  [Expand]Map Control
  [Expand]Scheduler
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Expand]Printing-Exporting
  [Expand]PDF Viewer
   Reporting
  [Expand]Snap
  [Expand]TreeMap Control
  [Expand]Sunburst Control
 [Expand]Common Features
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[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)

Totals

Row Totals are rows which display sub-totals calculated for outer row fields. Column Totals are columns which display sub-totals calculated for outer column fields.

PivotGridControl supports automatic and custom totals. Automatic totals are calculated using a summary function which is specified by a corresponding Data Field.

Custom totals can be calculated using any summary function. It's possible to calculate multiple custom totals against a data field.

The table below lists the main properties which affect an element's appearance:

Visibility

PivotGridOptionsViewBase.ShowColumnTotals

PivotGridOptionsViewBase.ShowRowTotals

PivotGridOptionsViewBase.ShowTotalsForSingleValues

PivotGridOptionsViewBase.ShowCustomTotalsForSingleValues

PivotGridFieldOptions.ShowTotals

PivotGridFieldBase.TotalsVisibility

Custom Totals Availability

PivotGridFieldBase.TotalsVisibility

Custom Total Collection

PivotGridField.CustomTotals

Total Location

PivotGridOptionsViewBase.RowTotalsLocation

PivotGridOptionsViewBase.ColumnTotalsLocation

 

Header:

Appearance

The PivotGridAppearancesBase.FieldValueTotal property.

Note: the appearance settings are not in effect if the control is painted using the Windows XP, Office2003 or Skin painting scheme (see the PivotGridControl.LookAndFeel property).

Custom Draw Event

The PivotGridControl.CustomDrawFieldValue event.

Contents

The PivotGridFieldBase.TotalValueFormat and PivotGridCustomTotalBase.Format properties provide settings used to format the text within the total headers.

The PivotGridControl.FieldValueDisplayText event enables the display text of individual values to be customized.

 

Total Values:

Appearance

The PivotGridAppearancesBase.TotalCell, PivotGridAppearancesBase.CustomTotalCell, PivotGridCustomTotal.Appearance and PivotGridFieldAppearances.CellTotal properties.

Custom Draw Event

The PivotGridControl.CustomDrawCell event.

Contents

The PivotGridFieldBase.TotalCellFormat and PivotGridCustomTotalBase.CellFormat properties provide settings used to format the values.

The PivotGridControl.CustomCellDisplayText event enables the display text of individual values to be customized.

Expanded See Also

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