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

Data Relation questions

P: n/a
niv
If 2 tables are related using the dataRelation object,
do deletes cascade through the established in memory
relationship?

Can you related more that 2 tables using a single
DataRelation Object?
will the code below work?
DataColumn Tables;
DataColumn Chairs;
DataColumn TablesToChairs;
// Code to get the DataSet not shown here.
Tables = DataSet1.Tables["Tables"].Columns["TableID"];
TablesToChairs = DataSet1.Tables
["TableToChairRel"].Columns["TableID"];
Chairs = DataSet1.Tables["Chairs"].Columns["ChairID"];
// Create DataRelation.
DataRelation relTablesToChairs;
relTablesToChairs = new DataRelation
("CustomersOrders", Tables, TableToChair,Chairs);
// Add the relation to the DataSet.
DataSet1.Relations.Add(relTablesToChairs);

Thanks for your help,

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

This discussion thread is closed

Replies have been disabled for this discussion.