Silverlight刷新domainDataSource
我有数据网格,其项目源是domainDataSource。 如何刷新域数据源? domainDataSource1.Load() 不起作用
I have datagrid whichs items source is domainDataSource.
How i can refresh Domain data source?
domainDataSource1.Load() does not works
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
有时这会有所帮助:
将它们放在 DomainDataSource 的 LoadingData 事件中。
Sometimes this helps:
Drop those in your DomainDataSource's LoadingData event.
我认为这应该对您有用,但我的猜测是加载期间出现错误或加载完成,但您缺少 PropertyChanged 通知来告诉数据绑定更新视觉效果。
尝试将处理程序添加到 .Loading 和 .Loaded 以确保加载开始和完成时没有错误(并且有数据)。
如果这不能解决问题,请确保在 DataContext 上引发 PropertyChanged 事件。
I think that should work for you, but my guess is that there is an error during the load or the load is finishing, but you are missing a PropertyChanged notification to tell data binding to update the visuals.
Try adding handlers to .Loading and .Loaded to make sure the load is starting and finishing without errors (and with data).
If that does not solve the issue, make sure you are raising the PropertyChanged event on your DataContext.