Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
RejectChange
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Divers
Thread ID:
00966480
Message ID:
00966855
Vues:
7
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform