Silverlight RadGridView refresh
I'm deleting a user from my GridView, but when I delete it. I first need to refresh my page to see the result.
Anybody any idea?
This is where I tr开发者_运维技巧y to rebind the datasource
if (e.PropertyName == "deleted")
{
RadGridView1.ItemsSource = null;
RadGridView1.DataContext = null;
RadGridView1.DataContext = _viewModel;
_viewModel.GetCovrUsers();
RadGridView1.ItemsSource = _viewModel.CovrUsers;
this._viewModel.PropertyChanged -= _viewModel_PropertyChanged;
}
You can use Inotify Property change.
精彩评论