TTMSFNCDataGrid.GroupSort Method
Sorts group headers by the key or aggregate value of the specified column.
API unit family: TMSFNCDataGrid
Declaring type: TTMSFNCDataGrid
Inherited from: TTMSFNCCustomDataGrid
Overloads
Overload 1
Sorts group headers by the key or aggregate value of the specified column.
procedure GroupSort(AColumn: Integer; ADirection: TTMSFNCDataGridSortDirection); overload;
Parameters
| Name | Description |
|---|---|
AColumn |
Zero-based column index to sort group headers by. |
ADirection |
Sort direction (ascending or descending). |
Overload 2
Sorts group headers by the specified columns and directions with optional custom compare.
procedure GroupSort(AColumns: TArray<Integer>; ADirections: TArray<TTMSFNCDataGridSortDirection>; ACustomCompareCallback: TTMSFNCDataGridDataCustomCompareCallback = nil; ASortOptionsCallback: TTMSFNCDataGridDataGetSortOptionsCallback = nil); reintroduce; overload;
Parameters
| Name | Description |
|---|---|
AColumns |
Array of zero-based column indices. |
ADirections |
Array of sort directions corresponding to AColumns. |
ACustomCompareCallback |
Optional callback for custom value comparison. |
ASortOptionsCallback |
Optional callback to supply per-column sort options. |