title: WPF Bind to derived object property
body: <p>I have abstract class Vehicle, and from that 3 concrete class are inherited i.e.Boat, Car and Aeroplane.</p>
  
  <p>Now I have collection of a object which has ID, Quantity and Vehicle</p>
  
  <pre><code>class data
  {
      public int ID {get; set}
      public int Quantity {get; set;}
      public Vehicle Vehicle {get; set;}
  }
  </code></pre>
  
  <p>Now I have a collection of data i.e. <code>IEnumerable&lt;data&gt;</code> in ViewModel</p>
  
  <p>And I am binding this to the Datagrid.</p>
  
  <p>Now some properties CAR object might have which Aeroplane and boat object might not have and vice versa.</p>
  
  <p>How can I identify which concrete object is there in the collection and accordingly show in the description column.</p>
  
  <p>For CAR i want to show data from property REVIEW.
  For Aeroplane I want to show data from property NOTES and similarly for boat.</p>
  
  <p>All the above property data should come in the "Description" column of DataGrid</p>
  
  <p>Can someone please help?</p>