title: C# outputting dynamic data in 2 columns bootstrap grid
body: <p>I have x amount of data I want to display in 2 columns. Assuming I am looping through the data, how can I display it in 2 columns using a bootstrap grid?
  (Using Razor in an MVC partial view)</p>
  
  <pre><code>&lt;div class="row"&gt;
          &lt;div class="col-md-6"&gt;
             item 1
          &lt;/div&gt;
          &lt;div class="col-md-6"&gt;
              item 2
          &lt;/div&gt;
      &lt;/div&gt;
  ...
  &lt;div class="row"&gt;
          &lt;div class="col-md-6"&gt;
             item x - 1
          &lt;/div&gt;
          &lt;div class="col-md-6"&gt;
              item x
          &lt;/div&gt;
      &lt;/div&gt;
  </code></pre>