Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RejectChange
Message
General information
Forum:
ASP.NET
Category:
Other
Title:
Miscellaneous
Thread ID:
00966480
Message ID:
00966855
Views:
8
I've ran into that before. From that I remember the problem was that the "Currency Manager" for the form/control needs to be refreshed.

Take a look at the "CurrencyManager" class in .NET. Notice that is called "Currency" but it has nothing to do with currency, it is more like "concurrency"

The currency manager is really the one that synchronize visual elements with their underlying data source.

>I'm doing a RejectChange() on a DataTable and the controls bounded to it to not refresh with the old data. If i redo the binding for the control, the binding is fine.
>
>there's probably things i'm not doing right...?
>
>Here a bit what i'm doing:
>
>
>textbox.Bindings.Add("Text", Table1, "Name");
>textbox.Text = "Some new data";
>Table1.RejectChange();
>// testbox does not refresh...
>textbox.Bindings.Clear();
>textbox.Bindings.Add("Text", Table1, "Name");
>// textbox now contains the old data.
>
Hector Correa
Previous
Reply
Map
View

Click here to load this message in the networking platform