title: ASP.net MVC: JQGrid - display checkbox for boolean column
body: <p>I want to be able to display a boolean field as a checkbox but I can't find anything on the internet which gives a solution. See below, I've tried to return html which renders a checkbox but the entries are all false and they are editable, which I don't want. </p>
  
  <p>Can someone point out what I'm doing wrong please? Why is this so HARD!? (Should I be solving this with CSS?)
  Many thanks,
  Pete</p>
  
  <pre><code>@Html.Grid(new GridControl()
                .SetName("grid")
                .SetListUrl(Url.Action("SearchForRequest", "Requests"))
                .SetPageSize(100)
                .SetIsAutoSize(true)
                .SetHttpVerb(HttpVerbs.Post)
                .SetHeight("300")
                .SetAdditionalAttributes(",datatype:'local'")
                .SetColumns&lt;RequestSummaryViewModel&gt;(cs =&gt;
                {
                    cs.Add(x =&gt; x.EvidenceRequired).SetCaption("Evidence Required").SetFormatter("function (cellvalue, options, rowObject) {return '&lt;input type=checkbox value=' + cellvalue + '/&gt;'}");
  </code></pre>