Lazarus
Programming => LCL => Topic started by: FrankBKK on June 15, 2021, 09:33:23 am
-
TStringGrid allows to change the sorting of a column via ColumnClickSort when clicking on the Header, click again to switch Asc/Desc sort order.
How can I get back the original, unsorted view ?
-
You can't.
Except if you saved the "original" sort somewhere
-
Thanks for the quick reply - that's bad though ....
What is the best approach to circumvent this ?
A secondary backup grid to restore the original sort order seems like overkill and to add an add. sort column is something I try to avoid - are there any other options ?
-
why not to add hidden column with numbers for original order and sort by it when needs?
-
IIRC, the row-Property (or was it rows?) is of type TStrings, so a TStringList could/should work