title: MVC Razor Override Property Captions
body: <p>I am trying to override the caption generated by the two MVC 3 Razor extensions below. I would like to show "Is Enabled" instead of "IsEnabled".</p>
  
  <pre><code>@Html.DisplayFor(modelItem =&gt; item.IsEnabled)
  </code></pre>
  
  <p>and</p>
  
  <pre><code>@Html.LabelFor(model =&gt; model.IsEnabled)
  </code></pre>
  
  <p>My property is decorated as follows:</p>
  
  <pre><code>[DisplayName("Is Enabled")]
  public bool IsEnabled { get; set; }
  </code></pre>
  
  <p>The <code>LabelFor</code> method seems to respect the <code>DisplayName</code> attribute; it works just fine. However, the <code>DisplayFor</code> method <strong>does not</strong> pick up the <code>DisplayName</code> attribute.</p>
  
  <p>Any ideas on how I can override the caption of a property for both Razor methods?</p>
  
  <p>Thanks!</p>