By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,467 Members | 1,493 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,467 IT Pros & Developers. It's quick & easy.

dataSet and DataRelation

P: n/a
Fox
Is it possible to get back the DataRelation contect from a dataSet?
{
DataRelation myDataRelation;
DataColumn parentColumn;
DataColumn childColumn;
parentColumn = myDataSet.Tables["ParentTable"].Columns["id"];
childColumn = myDataSet.Tables["ChildTable"].Columns["ParentID"];
myDataRelation = new DataRelation("parent2Child", parentColumn,
childColumn);
myDataSet.Tables["ChildTable"].ParentRelations.Add(myDataRelation);
}
Is it possible to get back the relationship and it detail?
eq
DataRelation newDataRelation;
//Something like
newDataRelation = myDataSet.Tables["ChildTable"].ParentRelations

newDataRelation.parentColumn..name
newDataRelation.childColumn.name


Nov 16 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.