How to: Add Custom Totals
The following example demonstrates how to add custom totals for a particular pivot grid field.
In this example, four different totals are added for the Country row field: Average, Sum, Min and Max. For this, they should be added to the PivotGridField.CustomTotals property and the PivotGridField.TotalsVisibility property should be set to FieldTotalsVisibility.CustomTotals.