Regular (non-custom) sorting...
Posted: Fri Jul 09, 2021 3:20 pm
Hello,
I know that there is a full example on custom sorting,
but understood that the simplest way
for sorting w/o customization would be using Sortby
as in the following:
However, the above code does not sort, even though
AColumn points at an active column,
it simply calls the following function.
function TTeeGrid.GetData: TVirtualData;
begin
result:=Grid.Data;
End;
Currently am testing this with D2009. Am probably missing
something, so would be much obliged for your help here,
Kind regards, Sami.
I know that there is a full example on custom sorting,
but understood that the simplest way
for sorting w/o customization would be using Sortby
as in the following:
Code: Select all
MyTeeGrid.Header.Sortable := True;
MyTeeGrid.Data.Sortby(AColumn);
// the following also does not sort (GData_Full is of type TStringsData)
// it just call does a dummy call.
GData_Full.Sortby(AColumn);
AColumn points at an active column,
it simply calls the following function.
function TTeeGrid.GetData: TVirtualData;
begin
result:=Grid.Data;
End;
Currently am testing this with D2009. Am probably missing
something, so would be much obliged for your help here,
Kind regards, Sami.