[Lazarus] Sorting with TDBGrid

Alexander Klenin klenin at gmail.com
Thu Apr 26 16:28:04 CEST 2012


On Thu, Apr 26, 2012 at 20:02, Koenraad Lelong <lazarus1 at de-brouwerij.be> wrote:
> 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.

Use TitleImageList and Column.Title.ImageIndex

-- 
Alexander S. Klenin




More information about the Lazarus mailing list