Skip to main content
Table of Contents

TTMSFNCCustomDataGrid.RowCustomCalculation Method

Computes a custom aggregate for a row.

API unit family: TMSFNCDataGrid Declaring type: TTMSFNCCustomDataGrid

Syntax

FMX.TMSFNCDataGrid.hppPascalC++
function RowCustomCalculation(ARow: Integer; ACustomCalculationCallback: TTMSFNCDataGridDataCustomRowCalculationCallback = nil; AFromColumn: Integer = -1; AToColumn: Integer = -1): Double;
double __fastcall RowCustomCalculation(int ARow, Fmx::Tmsfncdatagriddata::_di_TTMSFNCDataGridDataCustomRowCalculationCallback ACustomCalculationCallback = Fmx::Tmsfncdatagriddata::_di_TTMSFNCDataGridDataCustomRowCalculationCallback(), int AFromColumn = 0xffffffff, int AToColumn = 0xffffffff);

Remarks

When either bound is -1, the range passed on is the columns between the fixed left and fixed right columns.

Parameters

Name Description
ARow Zero-based row index.
ACustomCalculationCallback Function called once with (ARow, AFromColumn, AToColumn) that returns the result. When nil, the OnCustomRowCalculation event is used instead.
AFromColumn First column to include, or -1 for the whole data range.
AToColumn Last column to include, or -1 for the whole data range.

Returns

The value returned by the callback or event handler.