Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Databinding question
Message
From
17/03/2006 19:38:41
 
General information
Forum:
ASP.NET
Category:
ADO.NET
Miscellaneous
Thread ID:
01105309
Message ID:
01105469
Views:
14
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform