开发者

Silverlight RadGridView refresh

开发者 https://www.devze.com 2023-02-17 20:12 出处:网络
I\'m deleting a user from my GridView, but when I delete it. I first need to refresh my page to see the result.

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

精彩评论

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