title: webform data binding- list inside another list
body: <p>I have spend some hours serching on this. I have following class</p>
  
  <pre><code>public class Tasks
  {
      public string Id { get; set; }
      public string Name { get; set; }
      public Dictionary&lt;int,string&gt; SubTasks { get; set; }    
  }
  </code></pre>
  
  <p>My question is when I have <code>List&lt;Tasks&gt;</code> how to bind this to web form. I will be able to bind  Id and Name. But was unable to bind SubTasks  list  </p>
  
  <p><strong>Web form</strong>  </p>
  
  <pre><code>    &lt;table class="table1"&gt;
              &lt;tr&gt;
                  &lt;th&gt;ID&lt;/th&gt;
                  &lt;th&gt;Name&lt;/th&gt;
                  &lt;th&gt;Sub&lt;/th&gt;
              &lt;/tr&gt;
              &lt;asp:ListView ID="Listview1" runat="server"&gt;     
                  &lt;LayoutTemplate&gt;
                      &lt;ol&gt;
                          &lt;asp:PlaceHolder runat="server" ID="itemPlaceholder"&gt;&lt;/asp:PlaceHolder&gt;
                      &lt;/ol&gt;
                  &lt;/LayoutTemplate&gt;       
                  &lt;ItemTemplate&gt;                
                      &lt;tr&gt;
                          &lt;td&gt;&lt;%# Eval("Id")%&gt;&lt;/td&gt;
                          &lt;td&gt;&lt;%# Eval("Name")%&gt;&lt;/td&gt;
                          &lt;%--&lt;td&gt;????&lt;/td&gt;--%&gt;
                      &lt;/tr&gt;                
                  &lt;/ItemTemplate&gt;           
              &lt;/asp:ListView&gt;
         &lt;/table&gt;
  </code></pre>
  
  <p>I need this kind of output  </p>
  
  <pre><code>------------------------------
  id     |Name    |sub        |
  -----------------------------
      1  |    abc | 1a  aaa   |
         |        | 1f  sss   |
         |        | 1v  ggg   |
  -----------------------------
      2  |    ewq | 2a  ccc   |     
  -----------------------------
      3  |    rty | 3a   bbb  |     
  -----------------------------
  </code></pre>