Sign in Join

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

Mailing lists / lazarus / 2012-04

Sorting with TDBGrid

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Koenraad Lelong

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.

Reply by email

Alexander Klenin
to Koenraad Lelong
Koenraad Lelong wrote 11 lines
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

Reply by email