Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Delete row from child and call save of parent
Message
From
24/11/2008 16:23:18
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
 
To
24/11/2008 13:50:10
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01363835
Message ID:
01363853
Views:
9
>I am creating a parent child relationship between to entities (entity 1 as parent and entity 2 as child).
>
>I want to call save of just the parent and the child is saved too.

There is a property on the child business object "AutoSaveOnParentSave"; this should be false by default. Set this the way you need and make sure your child business object is registered with the parent

>
>Now the problem is I want to add few rows in child, update few and delete few ...
>
>Update and Add works fine, but when i do a datarow.delete for child and try to save the parent it throws a "Deleted row information cannot be accessed through the row" exception.

I am not sure how you are doing this; Is this in a form and using a delete button tied to the child record or are you doing this in code? Can you show a little of your code?
>
>The add and update works as expected..the delete doesnt... has anyone faced this problem?
>
>Thanks,
>Amruta


Tim
Timothy Bryan
Previous
Reply
Map
View

Click here to load this message in the networking platform