Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2017-02

Does anybody know a TStrinGrid-Component capable of sorting Date. Time, Float ...

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Vojtěch Čihák

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
Od: John Landmesser via Lazarus Komu: 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!

Reply by email