Skip to main content
Table of Contents

TTMSFNCDataGridDataColumnCalculation Record

Defines one column calculation: the aggregate, the row range, the output row, and optional callbacks for options and custom logic.

API unit family: TMSFNCDataGridData

Syntax

GeneratedPascalC++
TTMSFNCDataGridDataColumnCalculation = record
struct DECLSPEC_DRECORD TTMSFNCDataGridDataColumnCalculation

Remarks

Create values with CreateColumnCalculation, CreateNormalColumnCalculation, CreateGroupColumnCalculation or CreateCustomColumnCalculation rather than filling the record by hand. When several calculations are registered under the same name for one column, their formatted results are concatenated into the output cell.

Fields and properties

Name Type Description
CustomCalculationCallback TTMSFNCDataGridDataCustomColumnCalculationCallback Computes the aggregate when Method selects a custom calculation.
FromRow Integer First zero-based row of the range the calculation covers.
Method TTMSFNCDataGridDataCalculationMethod The aggregate applied to the column range, such as sum, average, minimum, maximum, or a custom calculation.
OptionsCallback TTMSFNCDataGridDataGetColumnCalculationOptionsCallback Customizes the formatting and placement options for this column-calculation result.
OutputRow Integer Zero-based row the formatted result is written to.
ToRow Integer Last zero-based row of the range the calculation covers, inclusive. -1 selects the default range.