title: How to refresh DataGrid in C# / WPF?
body: <pre><code>private void cmbEmployee_SelectionChanged(object sender, SelectionChangedEventArgs e)
  {
      string employee = (e.AddedItems[0] as ComboBoxItem).Content as string;
  
      dgFake.ItemsSource = newdal2.SelectUser(employee).Tables[0].DefaultView;
  }
  </code></pre>
  
  <p>This method populates the data grid on my WPF windows form by a specific employee when this employee is clicked from a combo box, however, when I click another employee after the first, it doesn't refresh the data grid, but instead adds that employee's data beneath the first. </p>
  
  <p>How do you refresh or delete the items in a Data Grid baring in mind this is on WPF Xaml Windows Forms, and it is not a DataGridView. I have tried these already and none have worked:</p>
  
  <pre><code>dgFake.Items.Refresh();
  dgFake.Items.Remove(); //Required a remove item passed to the method, so too specific
  dgFake.Itemssource = "";
  </code></pre>