New to Telerik UI for WPF? Download free 30-day trial

Data Operations like filtering, sorting or grouping are not re-evaluated

PROBLEM

When a value is modified in code, the items displayed in RadGridView are not updated according to defined SortDescroptors, FilterDescriptors or GroupDescriptors.

CAUSE

The reason for this behavior is that a CollectionChanged event of the bound source collection is not raised.

SOLUTION

In order to get the items refreshed, you have to notify the GridView that the bound collection has been changed. A CollectionChanged notification of the bound collection should be raised.

There are four possible solutions:

  1. You can update the value as illustrated in the Edit items outside RadGridView article.

  2. Invoke RadGridView.Rebind() method. It will raise CollectionChanged notification with action Reset. Please note that the entire view will be recreated.

  3. Ensure that CollectionChanged event is raised from the bound source collection.

When a nested property is modified and a notification is raised for it as suggested in point 1., then RadGridView will not receive it and the data displayed will not be re-evaluated. In that case the suggested solutuons listed as 2. or 3. should be applied.

You can also find the blog post on Fast real-time update.

See Also

In this article