I'm using a DbGrid together with a DataSource. And I want to do the ordering as the customer clicks on the title. I made the following settings: In my Dbgrid in the DataSource property linkei my DS. In my Ds in the DataSet property I linkei my ClientDataSet. In the ClientDataset in the fields editor I added a field:
Name:cod_produto
Type: Integer
Field type: Data
I have a search button, in it I make the query in a tbQuery.
My question is how do I load this data from TbQuery into my ClientDataSet so that it appears in DbGrid.