RowSelect is not sorted

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?

advstringgrid1.Navigation.MoveRowOnSort := true;

1 Like

Cap 2021-04-21 16-03-51-360

It's not worked.
Selected Rows is not moved.

Cap 2021-04-21 16-04-03-956

Was tested with a default grid on the form initialized with code:

 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.SortSettings.Show := true;
 advstringgrid1.SortSettings.IndexShow := true;

and this cannot be reproduced: