0
I’m using a Dbgrid along with a Datasource. And I’m willing to do the ordering as the client clicks on the title. I made the following settings: On my Dbgrid on the Datasource property I inked my DS. At my Ds on the Dataset property I inked my Clientdataset. In Clientdataset in Fields editor I added a field:
Name:cod_produto
Type: Integer
Field type: Data
I have a boot to fetch, in it I make the consultation in a tbQuery.
My doubt is how I play this Tbquery data into my Clientdataset, so it appears in Dbgrid.
I thought I’d do it that way, I just wanted to know if there’s any method that would return it to me, I tried the method
MoveBy(-1)
, but it didn’t work out.– Tiago Casanova
You can use the Datasetprovider component linked to your Dataset, in this case your Query. Datasetprovider will transfer data from Query to Clientdataset dynamically.
– Rinaldo Santana