B
Brian K. Williams
I am attempting to add a second Data Relation from the code-behind. It only
seems to be taking the first. anybody have an idea what I am doing wrong.
System.Data.DataRelation dataRelation3;
System.Data.DataColumn dataColumn5;
System.Data.DataColumn dataColumn6;
dataColumn5 = dsSports.Tables[2].Columns["CategoryID"];
dataColumn6 = dsSports.Tables[3].Columns["CategoryID"];
dataRelation3 = new System.Data.DataRelation("ParentChild3", dataColumn5,
dataColumn6);
dsSports.Relations.Add(dataRelation3);
System.Data.DataRelation dataRelation4;
System.Data.DataColumn dataColumn7;
System.Data.DataColumn dataColumn8;
dataColumn7 = dsSports.Tables[2].Columns["sportID"];
dataColumn8 = dsSports.Tables[3].Columns["sportID"];
dataRelation4 = new System.Data.DataRelation("ParentChild4", dataColumn7,
dataColumn8);
dsSports.Relations.Add(dataRelation4);
Thanks in advance.
Brian K. Williams
seems to be taking the first. anybody have an idea what I am doing wrong.
System.Data.DataRelation dataRelation3;
System.Data.DataColumn dataColumn5;
System.Data.DataColumn dataColumn6;
dataColumn5 = dsSports.Tables[2].Columns["CategoryID"];
dataColumn6 = dsSports.Tables[3].Columns["CategoryID"];
dataRelation3 = new System.Data.DataRelation("ParentChild3", dataColumn5,
dataColumn6);
dsSports.Relations.Add(dataRelation3);
System.Data.DataRelation dataRelation4;
System.Data.DataColumn dataColumn7;
System.Data.DataColumn dataColumn8;
dataColumn7 = dsSports.Tables[2].Columns["sportID"];
dataColumn8 = dsSports.Tables[3].Columns["sportID"];
dataRelation4 = new System.Data.DataRelation("ParentChild4", dataColumn7,
dataColumn8);
dsSports.Relations.Add(dataRelation4);
Thanks in advance.
Brian K. Williams