title: Div Tables with ASP.NET MVC
body: <p>I'm trying to find a better way to use a div table with ASP.NET MVC, the problem I see is that you need to do loads of looping, rather than one loop if I had to use a traditional <code>&lt;table&gt;</code> table.</p>
  
  <p>Example  </p>
  
  <pre><code>&lt;div class="column"&gt;
    &lt;div class="row"&gt;Name&lt;/div&gt;
      &lt;% foreach (Person person in (List&lt;Person&gt;)ViewData.Model) {%&gt;
        &lt;div class="row"&gt;&lt;%= Html.Encode(person.Name) %&gt;&lt;/div&gt;
      &lt;%} %&gt;
    &lt;/div&gt;
  &lt;div class="column"&gt;
    &lt;div class="row"&gt;Email&lt;/div&gt;
      &lt;% foreach (Person person in (List&lt;Person&gt;)ViewData.Model) {%&gt;
        &lt;div class="row"&gt;&lt;%= Html.Encode(person.Email) %&gt;&lt;/div&gt;
      &lt;%} %&gt;
    &lt;/div&gt;
  &lt;div class="column"&gt;
    &lt;div class="row"&gt;Phone&lt;/div&gt;
      &lt;% foreach (Person person in (List&lt;Person&gt;)ViewData.Model) {%&gt;
        &lt;div class="row"&gt;&lt;%= Html.Encode(person.Phone) %&gt;&lt;/div&gt;
      &lt;%} %&gt;
    &lt;/div&gt;
  </code></pre>