我正在从我的GridView中删除一个用户,但是当我删除它时。我首先需要刷新页面才能看到结果。
有谁知道吗?
这就是我尝试重新绑定数据源的地方。
if (e.PropertyName == "deleted")
{
RadGridView1.ItemsSource = null;
RadGridView1.DataContext = null;
RadGridView1.DataContext = _viewModel;
_viewModel.GetCovrUsers();
RadGridView1.ItemsSource = _viewModel.CovrUsers;
this._viewModel.PropertyChanged -= _viewModel_PropertyChanged;
}发布于 2012-09-12 13:18:25
您可以使用Inotify属性更改。
https://stackoverflow.com/questions/5350410
复制相似问题