Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

DataTable - GetChildRows never works!

Posted on 2009-05-05
2
Medium Priority
?
726 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 18

Accepted Solution

by:
DarrenD earned 500 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

Tech or Treat!

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

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

Summary Displaying images in RichTextBox is a common requirement with limited solutions available. Pasting through clipboard or embedding into RTF content only support static images.  This article describes how to insert Windows control objects int…
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:…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

618 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