Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxPivotGridCustomTotalCollection.Add(TcxPivotGridSummaryType) Method

Adds a custom total that will be calculated using the specified summary function.

#Declaration

Delphi
function Add(ASummaryType: TcxPivotGridSummaryType): TcxPivotGridCustomTotal;

#Parameters

Name Type
ASummaryType TcxPivotGridSummaryType

#Returns

Type
TcxPivotGridCustomTotal

#Remarks

Custom totals can be calculated using any of the summary functions listed in the TcxPivotGridSummaryType enumeration. To add a custom total, call the Add function and pass the type of the summary function as the parameter. The function returns the created custom total as the result.

At design time, you can add a custom total to the field’s CustomTotals collection using a standard editor dialog which can be invoked by clicking the ellipsis button in the Object Inspector.

See Also