title: How to hide a column in a bootstrap table?
body: <p>In my ASP.NET MVC Core app that uses Bootstrap (installed by default by Visual Studio 2015 MVC Core project), I need to use ID column in a controller but want to hide it in the View. But the following <code>View</code> still displays the column as blank. I would like to hide the first columns that is the ID column</p>
  
  <p><strong>View</strong>:</p>
  
  <pre><code>@model List&lt;myProj.Models.StateName&gt;
  
  &lt;form id="target" asp-controller="TestController" asp-action="TestAction" asp-route-returnurl="@ViewData[" ReturnUrl"]" method="post"&gt;
      &lt;table class="table"&gt;
          &lt;thead&gt;
              &lt;tr&gt;
                  &lt;th&gt;&lt;/th&gt;
                  &lt;th&gt;
                      State Name
                  &lt;/th&gt;
                  &lt;th&gt;
                      State Code
                  &lt;/th&gt;
              &lt;/tr&gt;
          &lt;/thead&gt;
          &lt;tbody&gt;
              @for (int i = 0; i &lt; Model.Count(); i++)
              {
              &lt;tr&gt;
                  &lt;td&gt;&lt;input asp-for="@Model[i].StateId" type="hidden" /&gt;&lt;/td&gt;
                  &lt;td&gt;
                      &lt;label asp-for="@Model[i].State"&gt;&lt;/label&gt;
                  &lt;/td&gt;
                  &lt;td&gt;
                      &lt;input asp-for="@Model[i].StateCode" type="text" readonly style="border:0px;"/&gt;
                  &lt;/td&gt;
              &lt;/tr&gt;
              }
          &lt;/tbody&gt;
      &lt;/table&gt;
      &lt;button type="submit" class="btn btn-default"&gt;Save&lt;/button&gt;
  &lt;/form&gt;
  </code></pre>