TTMSFNCCustomDataGrid.ColumnSum Method
Returns the sum of numeric values in the data rows of a column.
API unit family: TMSFNCDataGrid
Declaring type: TTMSFNCCustomDataGrid
Syntax
function ColumnSum(AColumn: Integer; AFromRow: Integer = -1; AToRow: Integer = -1): Double;
Parameters
| Name | Description |
|---|---|
AColumn |
Zero-based column index. |
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
Sum as a Double.