title: Prevent sorting in datagrid from resetting rows visibility property
body: <p>Is there a way to prevent DataGrid sorting to reset rows visibility?</p>
  
  <p>I tried re-setting visibility in "Sorting" event with no luck.
  Rows appear to have correct visibility but when GUI draws all rows are visible.</p>
  
  <p>XAML:</p>
  
  <pre><code>&lt;DataGrid x:Name="ErrorsList" Style="{StaticResource MyDataGrid}" Visibility="Hidden" CanUserResizeColumns="True" CanUserReorderColumns="True" ClipboardCopyMode="ExcludeHeader"  VerticalAlignment="Stretch" Sorting="ErrorsList_OnSort"&gt;
  </code></pre>
  
  <p>CS:</p>
  
  <pre><code>private void ErrorsList_OnSort(object sender, System.Windows.Controls.DataGridSortingEventArgs e)
      {
        // no effect whatsoever
        ChangeErrorsListRowsVisibility();
      }
  </code></pre>