title: How to display object's List property in listview
body: <p>I'm currently having a problem in displaying some stuff in <code>ListView</code>. I have a normal C# <code>Student</code> class and a <code>Classroom</code> class. In <code>Classroom</code> class contains a List of <code>Student</code> classes which is shown below:</p>
  
  <pre><code>public class Classroom
  {
      int classroomid {set;get;}
      List&lt;Students&gt; students{set;get;}
  }
  </code></pre>
  
  <p>My question is if I bind my <code>DataSource</code> of the <code>ListView</code> to a List of objects of <code>Classroom</code>, how do I render the <code>Student</code> lists in the <code>ListView</code>?</p>
  
  <pre><code>&lt;ListView&gt;
      &lt;ItemTemplate&gt;
          &lt;asp:Label Text='&lt;%# Eval("classroomid") %&gt;'&gt;&lt;/asp:Label&gt;
          &lt;asp:Label Text='&lt;%# Eval("students") %&gt;'&lt;/asp:Label&gt;
          &lt;asp:Label Text='&lt;%# Eval("students.name") %&gt;'&lt;/asp:Label&gt;
      &lt;/ItemTemplate&gt;
  &lt;/ListView&gt;
  </code></pre>
  
  <p>The code above essentially explains that what I'm trying to achieve, or possibly displays the student's details such as name or etc. Is there any way to achieve that? I do understand that nested <code>ListView</code> works, but I'm not sure how is the implementation.
  Thank you for your help in advance. :-)</p>