troubleshooting Question

Typed datasets: Filling related datatables in C#

Avatar of Ibs
Ibs asked on
C#.NET ProgrammingOracle Database
9 Comments3 Solutions677 ViewsLast Modified:

I'm trying to fill a typed dataset that has 4 related tables i.e. 1 main parent table and 3 child tables.
I have my dataset structure setup in my C# Winforms application in VS2010.

How do I get data from my database into my dataset which contains related tables all in one SQL statement?

I have successfully used the dataAdapter.Fill method on the parent table, but not sure how to get the child tables filled with related data at the same time.

I'm also trying to avoid having SQL strings at form level , as we are going to push all the SQL and data access functionality into one assembly.

Many thanks,



Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 3 Answers and 9 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 3 Answers and 9 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros