title: Bind WPF DataGrid Directly to EntityCollection<T>
body: <p>I understand the way wpf supports automatic updates of DataGrids and Listboxes (ie adding new items and removing removed ones) is with the <code>INotifyCollectionChanged</code> interface that ObservableCollection implements.  For some reason however I seem to be having complete success binding to an <code>EntityCollection&lt;T&gt;</code> from EntityFramework, which does not seem to implement <code>INotifyCollectionChanged</code>.  Is there some other way WPF is doing this? </p>
  
  <p>I'd just like to know how this is working.</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>Here's the relevant portion from the answer.  The short form is that it "just works" with WPF and WinForms bindings.</p>
  
  <blockquote>
    <p>EntityCollection currently does not
    implement INotifyCollectionChanged,
    which is the “new” standard interface
    for notifying collection changes.
    However, the binding list that you can
    obtain for EntityCollection (and
    which databinding will typically get
    when you pass and EntityCollection
    as a data source) is an IBindingList
    which has its own “old” standard way
    of notifying of collection changes
    (namely, the ListChanged event). In
    general, WinForms and WPF databinding
    knows how to deal with this interface.</p>
  </blockquote>