Okay, I know I'm missing something here. I'm using the latest version of Rad for WinForms (Q1 2008) and I'm trying to populate a RadGridView using code only (not the BindingSource control). Can you tell me why this code isn't working?
private void PopulateGrid()
{
DataSet ds = GetMasterDetail();
radGridView1.DataSource = ds;
}
private DataSet GetMasterDetail()
{
DataTable master = Clients.GetMasterList();
master.TableName = "Clients";
DataTable child = Orders.GetChildList();
child.TableName = "Orders";
DataSet ds = new DataSet();
ds.Tables.Add(master.Copy());
ds.Tables.Add(child.Copy());
DataRelation relationship = new DataRelation("MasterDetail", ds.Tables["Clients"].Columns["ClientID"], ds.Tables["Orders"].Columns["ClientID"]);
ds.Relations.Add(relationship);
return ds;
}