[Lazarus] Does anybody know a TStrinGrid-Component capable of sorting Date. Time, Float ...
Vojtěch Čihák
vojtech.cihak at atlas.cz
Mon Feb 13 21:36:34 CET 2017
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 <lazarus at lists.lazarus-ide.org>
> Komu: Lazarus at lists.lazarus-ide.org
> 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
Lazarus at lists.lazarus-ide.org
http://lists.lazarus-ide.org/listinfo/lazarus <http://lists.lazarus-ide.org/listinfo/lazarus>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20170213/4de47a37/attachment.html>
More information about the Lazarus
mailing list