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.
______________________________________________________________
Od: John Landmesser via Lazarus <[email protected]>
Komu: [email protected]
Datum: 13.02.2017 20:25
Předmět: [Lazarus] Does anybody know a TStrinGrid-Component capable of
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!
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus-ide.org/listinfo/lazarus
<http://lists.lazarus-ide.org/listinfo/lazarus>
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus-ide.org/listinfo/lazarus