开发者

Silverlight Refresh Data in Combo Box

开发者 https://www.devze.com 2022-12-13 00:59 出处:网络
I have a Data Grid that contains user selections on a SL form.From time to time, there are updates to the data in the Data Grid every 10 seconds.Is there a way to constantly refresh the data once the

I have a Data Grid that contains user selections on a SL form. From time to time, there are updates to the data in the Data Grid every 10 seconds. Is there a way to constantly refresh the data once the page has loaded? I found something cal开发者_运维百科led a DispatcherTimer that can run every 10 seconds (for example) but I'm not sure if I'm thinking this through correctly.

Does anyone know if this something like this will work.


Data binding should take care of this all for you automatically, assuming you are using ObservableCollection<T> for the ItemsSource and INotifyPropertyChanged for the data item <T> properties.

0

精彩评论

暂无评论...
验证码 换一张
取 消