title: MVC 3 Webgrid Column
body: <p>I'm working on a MVC 3 webgrid at the moment, in one of the columns I wish to have a button, I've achieved this when putting the following code in the view.</p>
  
  <pre><code>@grid.GetHtml(columns:
              grid.Columns(
              grid.Column("ID", "id", canSort: true),
              grid.Column("Surname", "surname", canSort: true),
              grid.Column("Forenames", "forename", canSort: true),
              grid.Column(format: @&lt;input type="button" value="View"/&gt;)),
              headerStyle: "header",
              alternatingRowStyle: "alt",
              htmlAttributes: new { id = "DataTable" }
              )
  </code></pre>
  
  <p>However I wish to create the grid server side for the purpose of paging, but when I put the code below in the action I get a error for for the button column.</p>
  
  <pre><code>var htmlString = grid.GetHtml(tableStyle: "webGrid",
                                            headerStyle: "header",
                                            alternatingRowStyle: "alt",
                                            htmlAttributes: new { id = "DataTable" },
                                            columns: grid.Columns(
                                                  grid.Column("ID", "id", canSort: true),
                                                  grid.Column("Surname", "surname", canSort: true),
                                                  grid.Column("Forenames", "forename", canSort: true),      
                                                  grid.Column(format: @&lt;input type='button' value='View'/&gt;)                                                                          
                                             ));
  </code></pre>
  
  <p>The first error is "Keyword, identifier, or string expected after verbatim specifier: @".</p>
  
  <p>Am I using the incorrect format on the button column? </p>