Solved

DataTable - GetChildRows never works!

Posted on 2009-05-05
2
715 Views
Last Modified: 2013-12-17
I have a number of datatables defined in  a dataset and have included the relations. However I'm never able to retrieve any ChildRows through the GetChildRows() method by providing the data relation name?
It always returns null. I've defined the relation as "Relation Only" as opposed to FK constraint and so on.
Any ideas if I'm doing something wrong?!

Thanks
0
Comment
Question by:Ignis2
2 Comments
 
LVL 18

Accepted Solution

by:
DarrenD earned 125 total points
ID: 24306631
Hi,

Not to state the obvious but I presume there is definitely childrows belonging to a parent row? Each table has values? and the relations are created on the correct rows? and can you post some code so that I can see what you are doing?

Once there is data, there should be no problems.

Cheers,

Darren
0
 

Author Comment

by:Ignis2
ID: 24306865
Doh! The relation was connected to the wrong table! And Ii checked it a 101 times! Aaaaargh!
sorry!
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The object model of .Net can be overwhelming at times – so overwhelming that quite trivial tasks often take hours of research. In this case, the task at hand was to populate the datagrid from SQL Server database in Visual Studio 2008 Windows applica…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now