1. Home
  2. Computing & Technology
  3. Delphi Programming
photo of Zarko Gajic
Zarko's Delphi Programming Blog

By Zarko Gajic, About.com Guide to Delphi Programming since 1998

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.

Read the full article to learn how to Sort records in DBGrid by Clicking on Column Title

Related:

Comments

June 9, 2006 at 9:53 am
(1) Tommy Vietnam says:

thanks you. You’re so kine. ;)

October 16, 2006 at 10:38 am
(2) mo_zamzam says:

Sorting records in Delphi DBGrid by
ibtable1 or ibquery1

September 28, 2007 at 6:00 am
(3) Medo says:

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

July 14, 2008 at 9:00 am
(4) Claude says:

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.

Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

Explore Delphi Programming
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. Delphi Programming

©2009 About.com, a part of The New York Times Company.

All rights reserved.