johnfraser
Programmer
I have a pretty simple DB design with three items:
relationship
customer
account
a customer and account can be in multiple relationships to in the DB there is a CR table which connects the two.
Moving on... I am attempting to create the simplest possible solution to get this into an AJAX enabled tree view.
I'm following the example given here:
but of course, the don't have a many to many relationship.
The part I'm stuck on:
where they setup their simple relationships... how can I do that with I have a many to many?
PS> I did try design view of the dataset and simple drag my tables into it (deleting columns I didn't need) but the "relation" elements of the dataset is always between the CR table and the parent and child.
relationship
customer
account
a customer and account can be in multiple relationships to in the DB there is a CR table which connects the two.
Moving on... I am attempting to create the simplest possible solution to get this into an AJAX enabled tree view.
I'm following the example given here:
but of course, the don't have a many to many relationship.
The part I'm stuck on:
Code:
dataSet11.Relations.Add("CustOrders",
dataSet11.Tables["Customers"].Columns["CustomerID"],
dataSet11.Tables["Orders"].Columns["CustomerID"]);
dataSet11.Relations.Add("OrderDetails",
dataSet11.Tables["Orders"].Columns["OrderID"],
dataSet11.Tables["Order Details"].Columns["OrderID"]);
this.UltraWebTree1.DataSource = dataSet11;
this.UltraWebTree1.Levels[0].RelationName = "CustOrders";
this.UltraWebTree1.Levels[0].ColumnName = "CompanyName";
this.UltraWebTree1.Levels[1].RelationName = "OrderDetails";
this.UltraWebTree1.Levels[1].ColumnName = "OrderId";
this.UltraWebTree1.Levels[2].ColumnName = "ProductId";
this.UltraWebTree1.DataMember = "Customers";
this.UltraWebTree1.DataBind();
where they setup their simple relationships... how can I do that with I have a many to many?
PS> I did try design view of the dataset and simple drag my tables into it (deleting columns I didn't need) but the "relation" elements of the dataset is always between the CR table and the parent and child.