title: How to display GUID in Kendo Grid?
body: <p>I just want to display a GUID from my model in a Kendo grid in the view, but I am getting this error each time:</p>
  
  <blockquote>
    <p>The model item passed into the dictionary is of type 'System.Guid',
    but this dictionary requires a model item of type 'System.String'.</p>
  </blockquote>
  
  <p>This is my grid code:</p>
  
  <pre><code>@(Html.Kendo().Grid(Model.revisions)
                      .Name("RevisionsGrid")
                      .Columns(columns =&gt;
                      {
                          columns.Bound(p =&gt; p.RevisionInfo.Id).Title("Revision ID");
                          columns.Bound(p =&gt; p.Accident.Id).Title("Accident ID")
                              .ClientTemplate("#= (Accident.Id == null) ? '' : Accident.Id.toString() #");
                          columns.Bound(p =&gt; p.RevisionInfo.RevisionDate).Title("Date Modified");
                          columns.Bound(p =&gt; p.RevisionInfo.User.Name).Title("By User");
                          columns.Command(command =&gt; command.Custom("ViewPdf").Text("View PDF").Click("getPdf"));
                      })
                      .Selectable()
                      .Pageable(p =&gt; p.PageSizes(new[] { 5, 10, 25 }))
                      .DataSource(dataSource =&gt; dataSource
                      .Server()
                      .Model(model =&gt;
                          {
                              model.Id(p =&gt; p.RevisionInfo.Id);
                              model.Field(p =&gt; p.Accident.Id).DefaultValue(Guid.NewGuid());
                          }))
  </code></pre>
  
  <p>The problem is with the second column which is bound to Accident.Id, a GUID type. My attempts at fixing this included adding the ClientTemplate to that column &amp; adding a default value for it, but neither of these helped. I also tried just adding ToString() in the column definition but then I get a different error about .Bound() only taking a property access method as an argument.</p>
  
  <p>Is there some place to convert the GUID to a string in order to display it here?</p>