title: Data binding directly to a store query (DbSet, DbQuery, DbSqlQuery) is not supported Entity Framework 5
body: <p>I have a devexpress GridControl for which I am setting it's datasource like so:</p>
  
  <pre><code>var regs = (from vcap in context.chaps
                               select vcap);
  
  gridControl1.DataSource = new BindingList&lt;chaps&gt;(regs.ToList());
  </code></pre>
  
  <p>But when I use the grid, rows I add or delete don't get saved, only changes to the initial rows get saved.</p>
  
  <p>If I do this:</p>
  
  <pre><code>gridControl1.DataSource = context.chaps.Local;
  </code></pre>
  
  <p>I don't get any rows, and <code>AddNewRow</code> doesn't even add a new row visually.</p>
  
  <p>If I do this:</p>
  
  <pre><code>gridControl1.DataSource = context.chaps.ToList();
  </code></pre>
  
  <p>I get the rows and can save changes to them; rows get deteled visually but not in the db, and can't <code>AddNewRow</code>.</p>
  
  <p>If I do this:</p>
  
  <pre><code>gridControl1.DataSource = context.chaps;
  </code></pre>
  
  <p>I get this exception:</p>
  
  <pre><code>Data binding directly to a store query (DbSet, DbQuery, DbSqlQuery) is not supported. Instead populate a DbSet with data, for example by calling Load on the DbSet, and then bind to local data. For WPF bind to DbSet.Local. For WinForms bind to DbSet.Local.ToBindingList().
  </code></pre>
  
  <p>but context.chaps.Local does not have a <code>ToBindingList</code> method either. </p>
  
  <p>I don't think this is a problem of devexpress, but rather I'm not getting how to set a datasource properly. Is there a way to get a <code>context.chaps.Local.ToBindingList()</code> equivalent?</p>