title: Converting int to currency format
body: <p>guys. I would like to ask if there's anyway to make an int input to currency format? I have tried using</p>
  
  <pre><code>[DisplayFormat(DataFormatString = "{0:C}", ApplyFormatInEditMode = true)]
  public int TotalAmount { get; set; }
  </code></pre>
  
  <p>but, it would show an empty </p>
  
  <blockquote>
    <p>@Html.EditorFor</p>
  </blockquote>
  
  <p>And if I used</p>
  
  <pre><code>[DisplayFormat(DataFormatString = "{0:F2}", ApplyFormatInEditMode = true)]
  public int TotalAmount { get; set; }
  </code></pre>
  
  <p>It would only show 0.00</p>
  
  <p>What I would like is when I input 10000, it would automatically format to</p>
  
  <blockquote>
    <p>Rp. 10.000</p>
  </blockquote>
  
  <p>inside the @Html.EditorFor field.</p>
  
  <p>Any suggestions?</p>