Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Databinding refresh
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Databinding refresh
Divers
Thread ID:
00966178
Message ID:
00966178
Vues:
47
I a form i have a dataset and i bind a field to a text box:
this.textBox1.DataBindings.Add("Text", _cust.AR_CustMaster, "Name");
this works fine but if i refresh the dataset with some new data the binding does not refresh. but if i execute this code after the dataset refresh:
this.textBox1.DataBindings.Clear();
this.textBox1.DataBindings.Add("Text", _cust.AR_CustMaster, "Name");
The new binding works fine.

My question is: is this the way to do (recreating all bindings after a data refresh) or there's some kind of magic method i haven't found yet ?

Thanks
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform