title: Filtering ObservableCollection with ICollectionView
body: <p>I have <code>ObservableCollection</code> binded to <code>dataGrid</code> and now I want to filter the presented data I see that I need to use <code>ICollectionView</code> but I am not sure how to add <code>ICollectionView</code> with my <code>MVVM</code> pattern.</p>
  
  <p>My code simplified looks following:</p>
  
  <pre><code>public class MainViewModel : ViewModelBase , IBarcodeHandler
  {
      public ObservableCollection&lt;TraceDataItem&gt; TraceItemCollectionViewSource { get; set; }
  }
  </code></pre>
  
  <p>My XAML</p>
  
  <pre><code>    &lt;Window xmlns:controls="clr-namespace:Mentor.Valor.vManage.RepairStation.Controls"
              xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
              xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
              xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
              xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
              &lt;DataGrid Grid.Row="2" ColumnWidth="*"  ItemsSource="{Binding TraceItemCollectionViewSource , Mode=TwoWay , UpdateSourceTrigger=PropertyChanged}" RowStyle="{StaticResource TraceRowStyle}"  IsReadOnly="True" Name="TraceDataGrid" Margin="5,5,5,5" Padding="5,5,5,5" AutoGenerateColumns="False"&gt;
      &lt;/Window&gt;
  </code></pre>
  
  <p>How I can add <code>ICollectionView</code> here in order to apply filtering to the view?</p>