Solved

DataTable - GetChildRows never works!

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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

743 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

11 Experts available now in Live!

Get 1:1 Help Now