[Lazarus] Sorting with TDBGrid

Koenraad Lelong lazarus1 at de-brouwerij.be
Thu Apr 26 11:02:08 CEST 2012


Hi,

I would like to implement sorting of columns with a TDBGrid. I found how 
to detect a click of the title, so that's OK.
However, in Delphi there are components where I can modify the title 
showing the sorting order of the field (a small triangle pointing up or 
down on the right of the colums' title). Is this implemented in TDBGrid 
? I could add a v or ^ to the title to indicate the sorting order, but 
that's not nice to see.

I'm using Lazarus 0.9.30.4 on Windows.

Thanks,

Koenraad Lelong.




More information about the Lazarus mailing list