Skip to main content
Table of Contents

TTMSFNCDataGridDataRowCalculation Record

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

API unit family: TMSFNCDataGridData

Syntax

GeneratedPascalC++
TTMSFNCDataGridDataRowCalculation = record
struct DECLSPEC_DRECORD TTMSFNCDataGridDataRowCalculation

Remarks

Create values with CreateRowCalculation or CreateCustomRowCalculation. When several calculations are registered under the same name for one row, the result of the last one is written.

Fields and properties

Name Type Description
CustomCalculationCallback TTMSFNCDataGridDataCustomRowCalculationCallback Computes the aggregate when Method selects a custom calculation.
FromColumn Integer First zero-based column of the range the calculation covers.
Method TTMSFNCDataGridDataCalculationMethod The aggregate applied to the row range, such as sum, average, minimum, or maximum.
OptionsCallback TTMSFNCDataGridDataGetRowCalculationOptionsCallback Customizes the formatting options for this row-calculation result.
OutputColumn Integer Zero-based column the formatted result is written to. -1 writes it to the first fixed right column; nothing is written when there are no fixed right columns.
ToColumn Integer Last zero-based column of the range the calculation covers, inclusive. -1 selects the default range.