title: Two datagrids with same sorting wpf
body: <p>I have two datagrids which is bound to two datatables as itemsource
  <a href="https://i.stack.imgur.com/b6SCY.png" rel="nofollow noreferrer">Datagrids</a>. I want to be able to sort both datagrid columns when clicked on one of the headers. When the property: "CanUserSortColumns="True"" is set to true, the datagrids will not sort together. What I want is when clicked on column header, the row from either datagrid 1 or datagrid 2 will follow the sorting, so the row matches the sorting. </p>
  
  <p>I have looked into this abit and saw that dataviewer can be used to sorting(since it is bound to datatable), also saw that a  CollectionView can be used, but I cant see any examples of doing this with two datagrids, only with one. </p>
  
  <p>Sorting only one datagrid(What I have):
  <a href="https://i.stack.imgur.com/riSwX.gif" rel="nofollow noreferrer">Image of what I have</a></p>
  
  <p>Sorting both datagrid by clicking header(What I need):
  <a href="https://i.stack.imgur.com/nSXS0.gif" rel="nofollow noreferrer">Image of what i need</a></p>
  
  <p>Is there a why to do this? Both datagrids have the same number of rows.  </p>