TTMSFNCDataGrid.ColumnAverage Method
Returns the average of numeric values in the data rows of a column. AFromRow/AToRow default to -1 meaning all data rows.
API unit family: TMSFNCDataGrid
Declaring type: TTMSFNCDataGrid
Inherited from: TTMSFNCCustomDataGrid
Syntax
function ColumnAverage(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
Average value as a Double.