OraQuery & DBGrid (Borland Builder C++)

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
avi

OraQuery & DBGrid (Borland Builder C++)

Post by avi » Mon 04 Jul 2005 21:01

How can i associat DBGrid whith a result of OraQuery ???

I try :
DBGrid1->DataSource->DataSet = OraQuery1->DataSource->DataSet;

but i receive "Access Violation" ERROR.

Alex
Posts: 655
Joined: Mon 08 Nov 2004 08:39

Post by Alex » Tue 05 Jul 2005 07:00

You can work with our datasets in the same way as with BDE. Please pay attention to C++ Builder Database help topics and to our CBuilder demo project.
As to your code, I think that you should create (or place on the form) TDataSource component, then do the following:

Code: Select all

 DataSource1->DataSet = OraQuery1;
 DBGrid1->DataSource =  DataSource1;

Post Reply