Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Databinding question
Message
 
 
To
17/03/2006 12:32:07
General information
Forum:
ASP.NET
Category:
ADO.NET
Miscellaneous
Thread ID:
01105309
Message ID:
01105447
Views:
13
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform