Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Databinding question
Message
 
 
À
17/03/2006 12:32:07
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Divers
Thread ID:
01105309
Message ID:
01105447
Vues:
10
Will add that tip to the memory bank. Thanks.

>
>The .RejectChanges() alone should work, but sometimes you need to call .EndCurrentEdit() on the Currency Manager (or BindingContext) before the .RejectChanges(). Try this:
>
>this.BindingContext[MyView].EndCurrentEdit();
>MyTable.RejectChanges();
>
>
>~~Bonnie
>
>
>
>>So I have a data entry form bound to a dataview. I make changes in a textbox, and decide to cancel the changes. I do a .RejectChanges on the table, and it works in the table but it doesn't refresh my textbox. If I do a .AcceptChanges on the table right after the .RejectChanges it refreshes my textbox. Is this the best way to do this?
>>
>>Thanks.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform