Solved

DataTable - GetChildRows never works!

Posted on 2009-05-05
2
717 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

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

809 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