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