Having Relationship with tables in dataset [Resolved]

Posted by Thiru under ASP.NET on 9/9/2011 | Points: 10 | Views : 926 | Status : [Member] | Replies : 2
Hi,
Is it possible to have relationship with tables in dataset?
If so, How ? Expecting any example code please.




Responses

Posted by: SheoNarayan on: 9/9/2011 [Administrator] HonoraryPlatinum | Points: 50

Up
0
Down

Resolved
Yes, you can have relationship between tables in DataSet.

DataSet is a very strong and comprehensive object that exposes a lot of functionality that many are not aware about. Most of us just know and use it as a holder of data from database or getting multiple result sets from database and hold in it.

Look at the code snippet to create relationship here.

http://www.dotnetfunda.com/interview/exclusive/x874-how-can-we-add-relation-between-tables-in-a-dataset-.aspx
http://msdn.microsoft.com/en-us/library/ay82azad(v=vs.80).aspx

Thanks

Regards,
Sheo Narayan
http://www.dotnetfunda.com

Thiru, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Thiru on: 9/9/2011 [Member] Starter | Points: 25

Up
0
Down
Great Thanks.

From your reference link i got this example code too:
http://msdn.microsoft.com/en-us/library/7sfkwf9s(v=vs.80).aspx

Thiru, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response