Click here to Skip to main content
15,936,709 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
In my project, i already storee the tables into dataset.. that dataset contains four table. now i want to relate the data in dataset and binding into datagrid...

Thanks...
Posted

1 solution

C#
I think this code will help to you
follow the following steps
1.Create object of DataRelation class
  Exm.DataRelation drl = new DataRelation("Relation Name","Parent Column","Child  Column",true);
2.Set Relation property of DataSet to that DataRelation
  Exm.Dataset.Relations.Add(drl);
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900