Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SORTING A DBGRID

Status
Not open for further replies.

hbez

Instructor
Mar 25, 2003
49
ZA
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.

Aaron
 
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top