How to sort a DBgrid wich shows a MyQuery

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
hwd
Posts: 11
Joined: Sun 09 May 2010 17:27

How to sort a DBgrid wich shows a MyQuery

Post by hwd » Sun 09 May 2010 17:36

Hello,

how can i sort a DbGrid witch shows a Query over a MyQuery on the Click on a Column Header. It works fine with OrderFields in a Table.

With best regards

HWD

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Tue 11 May 2010 08:12

You can use the TCRDBGrid component that sorts dataset on clicking on the column header. This component is included in the MyDAC library.

Post Reply