title: WPF Observable collection, dynamic type
body: <p>I need to ability to bind a grid to a collection of variale type (Interface/Type T/dynamic etc)</p>
  
  <p>I thought that I would be able to bind the collection to an interface and then change the object exteded off of this interface and the UI would update accordingly. </p>
  
  <pre><code>private readonly ObservableCollection&lt;IExportItemModel&gt; _exportedDataCollection = new ObservableCollection&lt;IExportItemModel&gt;();
      public ObservableCollection&lt;IExportItemModel&gt; ExportedDataCollection
      {
          get
          {
              return _exportedDataCollection;
          }
      }
  </code></pre>
  
  <p>.</p>
  
  <pre><code>List&lt;spGetDataByTransactionId_Result&gt; t = _repository.GetDataByTransactionId(new Guid());
  List&lt;IExportItemModel&gt; tempList = new List&lt;IExportItemModel&gt;();
  t.ForEach(r=&gt;tempList.Add(new FixedWidthModel(r)));
  
  ExportedDataCollection.AddRange(tempList);
  </code></pre>
  
  <p>But the UI doesn't reflect the changes, or at least DevExpress doesn't.</p>
  
  <p>Would there be a better way that I am not thinking about?</p>
  
  <p>Thanks in advance,
  Oli</p>