Table of Contents

TTMSFNCDataGridData.ColumnCalculation Method

Runs an aggregate over AColumn and stores the result in the named summary cells. The result persists and is re-evaluated by UpdateCalculations.

API unit family: TMSFNCDataGridData Declaring type: TTMSFNCDataGridData

Overloads

Overload 1

Runs an aggregate over AColumn and stores the result in the named summary cells. The result persists and is re-evaluated by UpdateCalculations.

procedure ColumnCalculation(AColumn: Integer; AMethod: TTMSFNCDataGridDataCalculationMethod; ACalculationOptionsCallback: TTMSFNCDataGridDataGetColumnCalculationOptionsCallback = nil; ACustomCalculationCallback: TTMSFNCDataGridDataCustomColumnCalculationCallback = nil); overload;

Parameters

Name Description
AColumn Zero-based column index used by the operation.
AMethod Mode or type that controls the operation.
ACalculationOptionsCallback Callback invoked by the operation.
ACustomCalculationCallback Callback invoked by the operation.

Overload 2

Runs an aggregate over multiple columns and stores results in the named summary cells.

procedure ColumnCalculation(AColumns: TArray<Integer>; AMethod: TTMSFNCDataGridDataCalculationMethod; ACalculationOptionsCallback: TTMSFNCDataGridDataGetColumnCalculationOptionsCallback = nil; ACustomCalculationCallback: TTMSFNCDataGridDataCustomColumnCalculationCallback = nil); overload;

Parameters

Name Description
AColumns Zero-based column index used by the operation.
AMethod Mode or type that controls the operation.
ACalculationOptionsCallback Callback invoked by the operation.
ACustomCalculationCallback Callback invoked by the operation.