Re: problem adding child records

From: Tony Martini (Tony.Martini_at_nospam.Innosoftgroup.com)
Date: 05/12/04


Date: Wed, 12 May 2004 10:58:59 -0400

David,
The problem was that the parent row was not committed to the database. I
called AcceptChanges after the call to Update for the parent row and was
then able to update the child tables successfully. Thanks for the post.
Tony
"David Sceppa" <davidsc@online.microsoft.com> wrote in message
news:BJcEiZfMEHA.2616@cpmsftngxa10.phx.gbl...
> Tony,
>
> It sounds like the parent row still hasn't been added to the parent
> DataTable. How are you adding the parent row? You'll need to implicitly
> commit the row to the DataTable by moving to another row, or by explicitly
> calling the EndEdit method on the CurrencyManager.
>
> I hope this information proves helpful.
>
> David Sceppa
> Microsoft
> This posting is provided "AS IS" with no warranties,
> and confers no rights. You assume all risk for your use.
> © 2004 Microsoft Corporation. All rights reserved.
>