Skip to main content

TcxPivotGridCustomTotalCollection.Add(TcxPivotGridSummaryType) Method

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

Declaration

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