title: Highlight DisplayFor if not passed validation defined in model
body: <p>Is there any way to highlight/ style DisplayFor or/and DisplayNameFor fields depending on validation defined in the model?</p>
  
  <p>It is in a strongly typed partial view and I'm using umbraco 7</p>
  
  <pre><code>@inherits  UmbracoViewPage&lt;MyProject.Models.ImportViewModel&gt;
  @{
      Layout = "~/Views/Master.cshtml";
  }    
  &lt;table class="list"&gt;
      @foreach (var item in Model.Items)
  {
      var categories = (IEnumerable&lt;MyProject.Models.Category&gt;)ViewData["categories"];
  
      &lt;tr class="list-item"&gt;
          &lt;td&gt;
              &lt;table&gt;
                  &lt;tbody&gt;
                      &lt;tr&gt;
                          &lt;td colspan="3"&gt;
                              &lt;h2&gt;
                                  (@Html.DisplayFor(modelItem =&gt; item.Ref))
                                  @Html.DisplayFor(modelItem =&gt; item.Title)
                              &lt;/h2&gt;
                          &lt;/td&gt;
                          &lt;td&gt;
                              &lt;label class="auto"&gt;@Html.DisplayNameFor(model =&gt; item.Status)&lt;/label&gt;
                              @Html.DisplayFor(modelItem =&gt; item.Status)&lt;br /&gt;&lt;br /&gt;
  
                              @Html.ActionLink("Approve", "Approve", new { id = item.Id })
                          &lt;/td&gt;
                      &lt;/tr&gt;
  
  
  
                      &lt;tr&gt;
                          &lt;td&gt;
                              &lt;label&gt;Category:&lt;/label&gt; @Html.DisplayFor(modelItem =&gt; categories.First(m =&gt; m.Id == item.CategoryId).Name)
                          &lt;/td&gt;
                          &lt;td&gt;
                              &lt;label&gt;@Html.DisplayNameFor(model =&gt; item.Description)&lt;/label&gt;
                              @Html.DisplayFor(modelItem =&gt; item.DescriptionShort)
                          &lt;/td&gt;
                      &lt;/tr&gt;
                  &lt;/tbody&gt;
              &lt;/table&gt;
  
          &lt;/td&gt;
      &lt;/tr&gt;
  }
  
  &lt;/table&gt;
  </code></pre>
  
  <p>I have this in my controller:</p>
  
  <pre><code>List&lt;MyProject.Models.Import&gt; items = (List&lt;MyProject.Models.Import&gt;)Session["sesimp"];
  return PartialView("ItemList", new ImportViewModel { Items = items });
  </code></pre>
  
  <p>I want to highlight fields which are not correct based on the field validation defined in the model.</p>
  
  <p>So for example if <em>category</em> is not selected and it is defined as required in model) then this field on the list has different css class assigned and/or possibly display error message. Same if <em>Ref</em> is empty, <em>Title</em> or <em>Description</em> contains invalid characters etc.</p>
  
  <p>Also I need to disable <em>Approve</em> link if the item didn't pass validation.</p>
  
  <p>How to do it?</p>