TTMSFNCCustomDataGrid.ColumnDistinct Method
Returns the count of distinct (unique) values in the data rows of a column.
API unit family: TMSFNCDataGrid
Declaring type: TTMSFNCCustomDataGrid
Syntax
function ColumnDistinct(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
Number of distinct values as a Double.