I have this field:
public decimal Price { get; set; } in Database it is decimal (7,2).
public decimal Price { get; set; }
View:
@Html.EditorFor(model => model.Pric
You may want to decorate your field with the [DisplayFormat] attribute as bellow:
[DisplayFormat]
[DisplayFormat(DataFormatString = "{0:N}", ApplyFormatInEditMode = true)] public decimal Price { get; set; }