Solved

DataTable - GetChildRows never works!

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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

A basic question.. “What is the Garbage Collector?” The usual answer given back: “Garbage collector is a background thread run by the CLR for freeing up the memory space used by the objects which are no longer used by the program.” I wondered …
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 …
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

690 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