Skip to main content
Table of Contents

TTMSFNCDataGridData.GroupSort Method

Sorts group header rows by their key or aggregate value in the specified direction.

API unit family: TMSFNCDataGridData Declaring type: TTMSFNCDataGridData

Overloads

Overload 1

Sorts group header rows by their key or aggregate value in the specified direction.

FMX.TMSFNCDataGridData.hppPascalC++
procedure GroupSort(AColumn: Integer; ADirection: TTMSFNCDataGridSortDirection); overload;
void __fastcall GroupSort(int AColumn, TTMSFNCDataGridSortDirection ADirection)/* overload */;

Parameters

Name Description
AColumn Zero-based column index used by the operation.
ADirection Direction used by the operation.

Overload 2

Multi-column group sort with optional custom comparer and sort options callback.

FMX.TMSFNCDataGridData.hppPascalC++
procedure GroupSort(AColumns: TArray<Integer>; ADirections: TArray<TTMSFNCDataGridSortDirection>; ACustomCompareCallback: TTMSFNCDataGridDataCustomCompareCallback = nil; ASortOptionsCallback: TTMSFNCDataGridDataGetSortOptionsCallback = nil); reintroduce; overload;
void __fastcall GroupSort(System::DynamicArray<int> AColumns, System::DynamicArray<TTMSFNCDataGridSortDirection> ADirections, _di_TTMSFNCDataGridDataCustomCompareCallback ACustomCompareCallback = _di_TTMSFNCDataGridDataCustomCompareCallback(), _di_TTMSFNCDataGridDataGetSortOptionsCallback ASortOptionsCallback = _di_TTMSFNCDataGridDataGetSortOptionsCallback())/* overload */;

Parameters

Name Description
AColumns Zero-based column index used by the operation.
ADirections Direction used by the operation.
ACustomCompareCallback Callback invoked by the operation.
ASortOptionsCallback Callback invoked by the operation.