T
Tony Johansson
Hello!
If I create this DataRelation it works fine
DataRelation orderProductRel = thisDataSet.Relations.Add("OrderProduct",
thisDataSet.Tables["Products"].Columns["ProductID"],
thisDataSet.Tables["Order
Details"].Columns["ProductID"]);
but if I change place on the Products and the Order Details like below I get
runtime error
that says "These columns don't currently have unique values."
DataRelation orderProductRel = thisDataSet.Relations.Add("OrderProduct",
thisDataSet.Tables["Order Details"].Columns["ProductID"],
thisDataSet.Tables["Products"].Columns["ProductID"]);
This sounds strange why is it important to have a specific order when
creating a DataRelation ?
//Tony
If I create this DataRelation it works fine
DataRelation orderProductRel = thisDataSet.Relations.Add("OrderProduct",
thisDataSet.Tables["Products"].Columns["ProductID"],
thisDataSet.Tables["Order
Details"].Columns["ProductID"]);
but if I change place on the Products and the Order Details like below I get
runtime error
that says "These columns don't currently have unique values."
DataRelation orderProductRel = thisDataSet.Relations.Add("OrderProduct",
thisDataSet.Tables["Order Details"].Columns["ProductID"],
thisDataSet.Tables["Products"].Columns["ProductID"]);
This sounds strange why is it important to have a specific order when
creating a DataRelation ?
//Tony