title: How to render a checkbox in the header row using MvcContrib?
body: <p>I am trying to render a "Select All" checkbox in the header row of my grid using the following.</p>
  
  <pre><code>column.For(x =&gt; Html.CheckBox("InvoiceSelection", false, new {@class = "checkbox reqPayment ", value = x.InvoiceId}))
            .Header(o=&gt;"&lt;th&gt;&lt;input type=\"checkbox\" id='chkHeader' /&gt;Select All&lt;/th&gt;")
            .Encode(false)
            .HeaderAttributes(@class =&gt; "text-error");
  </code></pre>
  
  <p>However, this does not render as expected and instead renders with an <code>&lt;a&gt;</code> as the content</p>
  
  <pre><code>&lt;tr&gt;&lt;th class="text-error"&gt;&lt;a href="/Invoices?Direction=Ascending"&gt;&lt;/a&gt;&lt;/th&gt;
  </code></pre>
  
  <p>The 'row' checkboxes render correctly and have already tried this <a href="https://stackoverflow.com/questions/4273236/mvc-contrib-grid-with-checkbox">solution</a> with no luck but not sure if this is applicable to Nuget package I am using at the moment - <a href="http://www.nuget.org/packages/MvcContrib.Mvc3-ci/" rel="nofollow noreferrer">MvcContrib.Mvc3-ci 3.0.100</a></p>