Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Databinding refresh
Message
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Databinding refresh
Miscellaneous
Thread ID:
00966178
Message ID:
00966178
Views:
48
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
Next
Reply
Map
View

Click here to load this message in the networking platform