title: Refresh DataGrid after item property change
body: <p>My model classes are automatically generated from the database by Entity Framework, so they cannot implement <code>INotifyPropertyChanged</code>. I have this in my XAML:</p>
  
  <pre><code>&lt;DataGrid ItemsSource={Binding CollectionView}/&gt;
  </code></pre>
  
  <p>and in the class that acts as <code>DataContext</code>:</p>
  
  <pre><code>public ICollectionView CollectionView { get; set; }
  private DbSet _data;
  </code></pre>
  
  <p>and in its constructor:</p>
  
  <pre><code>_data.Load();
  CollectionView = CollectionViewSource.GetDefaultView(_data.Local);
  </code></pre>
  
  <p>Another part of the application makes a database update, which changes one property of an entity instance. After this I call</p>
  
  <pre><code>_data.Load();
  CollectionView.Refresh();
  </code></pre>
  
  <p>but the update does not appear in the DataGrid. <strong>What should I do?</strong></p>
  
  <p>What's weird to me is that I could make a database insert appear with <code>_data.Load()</code> so I got the impression that this call completely rebuilds the <code>Local</code> collection from the database.</p>