开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜