Sorting records in DBGrid by Clicking on Column Title
Friday July 4, 2008
DBGrid ::
How to sort records in the DbGrid component by clicking on the column title. Plus: how to change the appearance of the selected column title to reflect the sort order. Even more: how to change the cursor when moving over the DBGrid column titles.
How to sort records in the DbGrid component by clicking on the column title. Plus: how to change the appearance of the selected column title to reflect the sort order. Even more: how to change the cursor when moving over the DBGrid column titles.
Read the full article to learn how to Sort records in DBGrid by Clicking on Column Title
Related:


Comments
thanks you. You’re so kine.
Sorting records in Delphi DBGrid by
ibtable1 or ibquery1
Thanks for that. Just one question. How I can to show, that data are ordered ASC or DESC? I can’t get the “↑” “↓” into the title or Images into the title row.
Thanks
Medo
I would suggest possibly making the row that you’re sorting by bold, or italic. I’m sure you could draw an arrow on top of the grid but… may not be pretty.