I need to display a euro value from a decimal value that is stored in a SQL-Server database.
The value comes from the database like this: 10000,0000 and I need to display it like this: 10.000,00 €
How I can do this?
I tried formatting the ViewModel:
[DisplayFormat(DataFormatString = "{0:c}")]
public decimal Price { get; set; }
And display it like this:
@Html.DisplayFor(modelItem => item.Price)
But I get ¤10,000.00
Any suggestions?
Thanks.