title: Extending IEnumerable to Return BindingList
body: <p>In a previous question on <a href="https://stackoverflow.com/questions/1394816/binding-entities-to-a-windows-datagridview">Stack Overflow</a>, I had run into an issue with returning an EF query to the DataGridView. Of course I'd run into an issue. However, I added an extension method that still has me baffled since it isn't working. It seems like it should, but for some reason it's not.</p>
  
  <pre><code>public static class BindingListEntityExtension
  {
      public static BindingList&lt;T&gt; ToBindingList&lt;T&gt;(this IEnumerable&lt;T&gt; entities)
      {
          BindingList&lt;T&gt; rtn = new BindingList&lt;T&gt;();
  
          foreach (T obj in entities)
          {
              rtn.Add(obj);
          }
  
          return rtn;
      }
  }
  </code></pre>
  
  <p>Any ideas what's going on? My implementation is like so:</p>
  
  <pre><code>MyEntities context = new MyEntities();
  tempDataGridView.DataSource = context.Employees.ToBindingList();
  </code></pre>