I populate a DBGrid using a ClientDataSet, Provider and DataSource. I cant seem to get the DBGrid to sort when I click on a heading. Must I use an ADOQuery to do this?
Hannes
the grid itself cant sort (unless its devexpress quantum grid) so you need to either change the tables index to one that is setup to the sort you require or change the sql to sort based on the grid column and direction.
I'm using ehlib which has served me well over the past. It seems it must be populated from a query to enable sorting by clicking on a column heading. I'll hav a look at the grid from devexpress.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.