TTMSFNCDataGrid.RowCustomCalculation Method
Runs a user-supplied callback over row values and returns the computed result.
API unit family: TMSFNCDataGrid
Declaring type: TTMSFNCDataGrid
Inherited from: TTMSFNCCustomDataGrid
Syntax
function RowCustomCalculation(ARow: Integer; ACustomCalculationCallback: TTMSFNCDataGridDataCustomRowCalculationCallback = nil; AFromColumn: Integer = -1; AToColumn: Integer = -1): Double;
Parameters
| Name | Description |
|---|---|
ARow |
Zero-based row index. |
ACustomCalculationCallback |
Callback that receives each cell value and accumulates the result. |
AFromColumn |
First column to include, or -1 for the first data column. |
AToColumn |
Last column to include, or -1 for the last data column. |
Returns
The Double result produced by the callback.