title: C# MVVM DataGrid Binding Strategies?
body: <p>What is the difference between:</p>
  
  <pre><code>&lt;DataGrid
      ItemsSource="{Binding MyCollection}"
  /&gt;
  </code></pre>
  
  <p>and...</p>
  
  <pre><code>&lt;CollectionViewSource x:Key="CollectionData" Source="{Binding MyCollection}"/&gt;
  ...
  &lt;DataGrid
      DataContext="{StaticResource CollectionData}"
      ItemsSource="{Binding}"
  /&gt;
  </code></pre>
  
  <p>They both seem to work. The only difference is that the second snippet, I can't bind to the SelectedItem. So why would someone pick one strategy over the other? Why wouldn't someone just use the first snippet? Thanks.</p>