This question has been asked (and answered) 3,245 times so far... ;)
The answer is in the archives and in the white paper on my site. See
http://www.betav.com/Files/Content/whitepapers.htm
hth

Signature
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
Microsoft MVP
INETA Speaker
www.betav.com/blog/billva
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________
Visit www.hitchhikerguides.net to get more information on my latest book:
Hitchhiker's Guide to Visual Studio and SQL Server (7th Edition)
-----------------------------------------------------------------------------------------------------------------------
> Hi all. Using Dot Net 2.0.
>
[quoted text clipped - 29 lines]
>
> Chris B.
Bill, thanks for the article. The relations do seem to work on the FIRST
set of tables, when I check 'Nested Relation.'
However, I'm having a problem now where the *second* table isn't updating
correctly at all. When I do: dataAdapter.Update(SecondTable), it should be
executing an insert, but it instead seems to be doing an UPDATE. I
inspected the state of those records and it seems the relation sets the
child record values OK, but then changes their .RowState to 'Updated' from
'Added.' This is not correct and would cause the records to be updated
instead of added, which explains the concurrency exception I see saying 0
rows were updated.
Thanks for any further thoughts,
Chris B.
> This question has been asked (and answered) 3,245 times so far... ;)
> The answer is in the archives and in the white paper on my site. See
[quoted text clipped - 35 lines]
>>
>> Chris B.
Cor Ligthert [MVP] - 22 Nov 2006 04:47 GMT
Chris,
Will you please not repeat your message, this newsgroup is active enough to
answer in decent time your question. Now we have an open question for people
who are looking for this on Google or whatever.
(And for those I have now explained why).
Thanks in advance.
Cor
> Bill, thanks for the article. The relations do seem to work on the FIRST
> set of tables, when I check 'Nested Relation.'
[quoted text clipped - 51 lines]
>>>
>>> Chris B.