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

TcxPivotGridCrossCell.GetSummaryByField(TcxPivotGridField,TcxPivotGridSummaryType) Method

Returns the summary value calculated for a particular field using the specified function.

#Declaration

Delphi
function GetSummaryByField(AField: TcxPivotGridField; ASummaryType: TcxPivotGridSummaryType): Variant; overload; virtual;

#Parameters

Name Type
AField TcxPivotGridField
ASummaryType TcxPivotGridSummaryType

#Returns

Type
Variant

#Remarks

Summary values are calculated for all the data fields (including the invisible data fields) and the fields whose values are used to determine the sort order for the “sorted by summary“ fields. All these fields are stored in the pivot grid’s SummaryFields property.

Use the GetSummaryByField function to get the summary value calculated for the field passed as the AField parameter. The summary function used to calculate summary value is passed as the ASummaryType parameter. Alternatively, you can use the SummaryCells collection to access the calculated summary values.

See Also