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

If your memory is anything like *my* memory, you'll forget it by next week. <g>

~~Bonnie


>
>>
>>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.
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform