title: WPF filter datagrid through textbox
body: <p>I have been searching everywhere and I just cannot make it..
  I have a simple <code>DataGrid</code>:</p>
  
  <pre><code>&lt;DataGrid Name="myGrid" HorizontalAlignment="Left" Height="399" 
                    Margin="272,150,0,0" VerticalAlignment="Top" Width="735"/&gt;
  </code></pre>
  
  <p>When my form loads. I have this function to fill datagrid :</p>
  
  <pre><code>public MainWindow()
  {
      InitializeComponent();
      myGrid.ItemsSource = datatble;
  }
  </code></pre>
  
  <p>I have a <code>TextBox</code> name "txtSearch" and my goal is to filter the datagrid and find all rows that contain txtSearch.Text (and hide the other rows)</p>
  
  <p>Could someone provide an example ?</p>