Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DataSet Changes
Message
De
29/05/2003 12:33:16
 
 
À
29/05/2003 12:17:17
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Titre:
Divers
Thread ID:
00793978
Message ID:
00793993
Vues:
17
Bonnie,

Thanks for responding. I kinda thought about that. I'm adding a RejectChanges method to my b.o. that with check the RowState. If the RowState is added it will initialize all columns back to default values. If the RowState is Deleted or Modified I will just call the row's RejectChanges method. Should work ... I think.

However, I'm having some troubles getting the UI to update. After I call Reject changes my UI still displays the last values. The controls bind to the b.o. that gets/sets it data from a DataRow. Any ideas there?

Thanks,
Dan

>Dan,
>
>How about just adding the Row back in again after the RejectChanges() ...
>
>~~Bonnie
>
>
>>I have a DataTable that I append a DataRow into. The row has a RowState of Added. When a user want's to cancel any changes they have made I call the RejectChanges method for the row. This removes the row from the table, which is not the intent. The intent is to clear any changes made. Is there a way to do this without having to save the record before allowing the user to edit?
>>
>>Thanks,
>>Dan
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform