DataSet & DBGrid (borland c++)

harongi

Member
Help !!
How can i associat DBGrid whith OracleDataSet ?

My code look like this :

DBGrid1->DataSource = OracleDataSet1->DataSource;
OracleDataSet1->SQL->Clear();
OracleDataSet1->SQL->Add("SELECT * From MTable")
Form1->OracleDataSet1->Open();

But it dos'nt work.
 
OracleDataSet1->DataSource is not the datasource to which the dataset is connected. You will need to explicitly assign the correct datasource instance to the DBGrid.
 
Back
Top