, Visual C#


         

The table Customers is bound"


dataGrid1.DataMember = "Customers";
this.Text = " The table Customers is bound"
"to DataSet with defined relationships";
}
Bind the table Orders to DataSet with no relationships ( Orders ).
Form1.cs , .
21.3. Orders .
private void button3_Click(object sender, EventArgs e)
{
DataSet* myDataSet = new DataSet();
oleDbConnection1.Open();
oleDbDataAdapter1.Fill(myDataSet, "Customers");
oleDbDataAdapter2.Fill(myDataSet, "Orders");
oleDbDataAdapter3.Fill(myDataSet, "OrderDetails");
oleDbConnection1.Close();
dataGrid1.DataSource = myDataSet;
dataGrid1.DataMember = "Orders";
this.Text = " The table Orders is bound"
"to DataSet with no defined relationships";
}