Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Delete row from child and call save of parent
Message
De
24/11/2008 16:23:18
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
 
À
24/11/2008 13:50:10
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01363835
Message ID:
01363853
Vues:
10
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform