title: Binding Concrete types (using Inheritance) to a ListView and display in Hierarchical structure ASP.net 3.5
body: <p>I would like to bind more than two different implementations of a class to a ListView and display the data in a Hierarchical structure (multi level).</p>
  
  <p>Look at the Code below to understand where I'm coming from:</p>
  
  <p>Thanks in advance
  M.</p>
  
  <pre> <code>
  public class AutoElements : CommonElements
      {
         public class results_dataset
           {
              public List claimsHistory { get; set; }
            }      
          public class Claims_history
          {
              public List claim { get; set; }
              public typesectionEnum type; // attribute 
          }
  
          public class Claim : ClaimType
          {
              public string first_payment_date { get; set; }
              public ClaimAssociationIndicatorEnum claim_association_indicator;
              public List vehicle; 
          }
  
      }</code> </pre>
  
  <pre><code> public  class CommonElements : CPRulesCommonElements 
    {
       public class ClaimType
          {
              public string  claim_date { get; set; }
              public List address { get; set; }
          }
  
   public class SubjectType  : BaseSubjectType
        {
          public int unit_number {get; set;}
            .....       
        }
      public class BaseSubjectType
      {
          public List driversLicense { get; set; }
            ...
       }
   public class DriversLicenseType : CPdriversLicenseType 
      {
         public LenientDateType issue_date { get; set; }
          .....
      }
  } </code> </pre>
  
  <pre> <code>  public class CPRulesCommonElements : Enums
  
      {
         public class telephoneType
          {
              public TelephoneTypeEnum type { get; set; }
              ......        }
          public class driversLicenseType
          {
              public DriversLicenseHistoryEnum history { get; set; }
               ......        
          }  </code></pre>