I need to use the currency format
When using the annotation:
(Model)
[DataType(DataType.Currency)]
[DisplayFormat(DataFormatString = "{0:C2}", ApplyFormatInEditMode = true)]
public Nullable<float> monto { get; set; }
(View)
@Html.EditorFor(model => model.monto_observado, new { htmlAttributes = new { @class = "form-control" } })
It correctly shows the data to be edited:
$26,281,000.00
but when you try to "Save" you validate me
The field Monto Observed must be a number.
What do I have to do to be able to use currency format?