aGrid has HotmailRowSelect with true.
Some rows has selected.
Sorting grid by clicking Cells[X, 0] is done successfully.
But Selected Rows are not sorted.
I checked rowSelect[i] values. Those are not sorted too.
How can I sorting with row selection info?
Set
advstringgrid1.Navigation.MoveRowOnSort := true;
1 Like
It's not worked.
Selected Rows is not moved.
Was tested with a default grid on the form initialized with code:
begin
advstringgrid1.MouseActions.CheckAllCheck := true;
advstringgrid1.MouseActions.DisjunctRowSelect := true;
advstringgrid1.MouseActions.DisjunctRowSelectNoCtrl := true;
advstringgrid1.MouseActions.HotmailRowSelect := true;
advstringgrid1.MouseActions.RowSelect := true;
advstringgrid1.Navigation.MoveRowOnSort := true;
advstringgrid1.Options := advstringgrid1.Options + [goRowSelect, goRangeSelect];
advstringgrid1.RandomFill(false);
advstringgrid1.SortSettings.Show := true;
advstringgrid1.SortSettings.IndexShow := true;
end;
and this cannot be reproduced: