title: Update DataGrid to EF
body: <p>I display data into <code>DataGrid</code> in this way:</p>
  
  <pre><code>var display = (from r in ve.Folders.Include("Hosting_Company1")
                 select new RepoClass{ id = r.Folder_Id,name= r.Full_Name, hosName= r.Hosting_Company1.Housing_Name }).ToList();
  
  dg1.ItemsSource = display;
  </code></pre>
  
  <p>and in the <code>XAML</code>:</p>
  
  <pre><code>&lt;DataGrid CanUserAddRows="False" AutoGenerateColumns="False" Name="dg1"&gt;
      &lt;DataGrid.Columns&gt;
          &lt;DataGridTextColumn Binding="{Binding Path=id, Mode=TwoWay}" Header="id"/&gt;
          &lt;DataGridTextColumn Binding="{Binding Path=name, Mode=TwoWay}" Header="Name" /&gt;
          &lt;DataGridTextColumn Binding="{Binding Path=hosName, Mode= TwoWay}"  Header="company" /&gt;
      &lt;/DataGrid.Columns&gt;
  &lt;/DataGrid&gt;
  </code></pre>
  
  <p>How do I then update the data into the <code>EF</code>?</p>