title: DisplayFormat not getting applied on decimal value
body: <p>I have a model property I'm trying to render using an EditorFor template, and I'm trying to apply formatting using the DisplayFormat attribute.  However, it's not working at all -- it's totally being ignored.</p>
  
  <p>Here is my template:</p>
  
  <pre><code>@model System.Decimal?
  @Html.TextBoxFor(m =&gt; m)
  </code></pre>
  
  <p>Here is my model:</p>
  
  <pre><code>[DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:0.00}")]
  public decimal? Retail { get; set; }
  </code></pre>
  
  <p>Here is my view:</p>
  
  <pre><code>@Html.EditorFor(m =&gt; m.Retail)
  </code></pre>
  
  <p>But it's rendering a textbox with the following value:</p>
  
  <blockquote>
    <p>189.9900</p>
  </blockquote>
  
  <p>It seems pretty straight forward, but it's not working, and I have no idea why.</p>
  
  <p><strong>UPDATE:</strong>
  Just for kicks, I tried it with a DisplayFor template, and it worked:</p>
  
  <pre><code>@Html.DisplayFor(m =&gt; m.Retail)
  </code></pre>
  
  <p>So why would the DisplayFor template work, but not the EditorFor template, when I've set <code>ApplyFormatInEditMode</code> to true?</p>
  
  <p><strong>UPDATE 2:</strong>
  Never mind, the reason that worked is because my Decimal display template was hard-coded to format that way.  So my display template also does not work.</p>