开发者

Silverlight Refresh Data in Combo Box

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜