Hi,
IMO such sorting is not very handy. TStringGrid is for strings. Consider what you do:
1) you have some data structure - dates, floats, integers
2) you fill stringgrid with the data
Now you need to sort. You have three possibilities:
1) Sort data structure and fill string grid again - better or
2) Convert string from string grid back to data, and sort - worse or
3) do not use stringgrid at all and use DBGrid or DrawGrid - the best
V.
______________________________________________________________
Show quoted text 5 lines
Hi,
i searched some time for such a component ... in vain!
So i developed myself a TStringGrid, that sorts columns with TDate, TTime, TFloat ...
I can't believe that this doesn't allready exists for Lazarus?!
For example i found http://www.tkweb.eu/en/delphicomp/kgrid.html <http://www.tkweb.eu/en/delphicomp/kgrid.html> BUT!! "Written as TCustomControl descendant, this is not a TCustomGrid enhancement"
So, no LoadFromCSV etc ... very bad!
Some sort of TSortGrid from Delphi-Zip would be nice.
Tipps are welcome!
