BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
private void Form1_Load(object sender , System.EventArgs e)
{
//Fill the dataset with the two tables.
this.sqlDataAdapter1.Fill(this.dataSet11.Customers);
this.sqlDataAdapter2.Fill(this.dataSet11.Orders);
//Add a DataRelation to the dataset.
DataRelation dr = new DataRelation("CustomersToOrders", this.dataSet11.Customers.Columns["CustomerID"], this.dataSet11.Orders.Columns["CustomerID"]);
this.dataSet11.Relations.Add(dr);
//Set up the datasources.
this.masterGrid.DataSource = this.dataSet11.Tables["Customers"];
this.detailsGrid.DataSource = Me.DataSet11.Tables["Customers"];
this.detailsGrid.DataMember = "CustomersToOrders";
}