Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Some DataRelation tasks

Status
Not open for further replies.

raabbasi

Technical User
Jun 21, 2005
52
PK
I am new to ADO.NET. I wish to know how to set a DataRelation object so that;

If a row in the Parent DataTable be deleted, the corresponding rows in any Child DataTable objects are also automatically deleted.

If the value of the primary key field in the parent row is modified, the change cascades down to the child rows automatically.

Is it also possible that a modification in a common field among different DataTables, other than the primary key, may reflect in more than one tables?

Anyone should kindly guide me with some sample code and oblige.

R. A. Abbasi
 
Probably, a more appropriate and refined way of my question is that how can I enforce Referential Integrity between 2 or more of my DataTables in VB.NET.

Please help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top