Display curr in EUR in DataGrid for en-GB culture [modified]
-
Hello, I am trying to build an ASP.NET webform that uses the en-GB culture. This screen needs to display dates MM-dd-yy and currencies in EUR using the € or € symbol. 1) does the Euro symbol come before or after the currency amount? Is there a space between them? 2) I set the culture page directive in the ASP.NET page to en-GB. This makes the currencies in my datagrid display in the GBP, but I need currencies to show in the euro. How is this overridden?
' page directive... Culture="en-GB" . . . ' datagrid <%# DataBinder.Eval(Container.DataItem, "UNIT_PRICE", "{0:C}") %>
[Note: This is .NET 1.1, VS. NET 2003] Thanks for the tips, -- modified at 13:49 Monday 21st August, 2006Josh Blair http://joshblair.blogspot.com/
-
Hello, I am trying to build an ASP.NET webform that uses the en-GB culture. This screen needs to display dates MM-dd-yy and currencies in EUR using the € or € symbol. 1) does the Euro symbol come before or after the currency amount? Is there a space between them? 2) I set the culture page directive in the ASP.NET page to en-GB. This makes the currencies in my datagrid display in the GBP, but I need currencies to show in the euro. How is this overridden?
' page directive... Culture="en-GB" . . . ' datagrid <%# DataBinder.Eval(Container.DataItem, "UNIT_PRICE", "{0:C}") %>
[Note: This is .NET 1.1, VS. NET 2003] Thanks for the tips, -- modified at 13:49 Monday 21st August, 2006Josh Blair http://joshblair.blogspot.com/
Hi there, According to the official recommedation, the currency symbol comes before the money amount with no space in between, however it may vary from nations to nations. You can read more about this from the links: http://ec.europa.eu/economy_finance/euro/our_currency_en.htm[^] http://en.wikipedia.org/wiki/Euro#The_currency_sign_.E2.82.AC[^] And the default currency symbol of the en-GB cutlure is the £, not the €, so to use the euro symbol, you'll have a couple of options to do: + Change the currency symbol in the Regional setting in the control panel. + Change the currency symbol at runtime using the
CurrencySymbol
property of theNumberFormatInfo
object. + Hard code the currency symbol when you do the number formatting. -
Hi there, According to the official recommedation, the currency symbol comes before the money amount with no space in between, however it may vary from nations to nations. You can read more about this from the links: http://ec.europa.eu/economy_finance/euro/our_currency_en.htm[^] http://en.wikipedia.org/wiki/Euro#The_currency_sign_.E2.82.AC[^] And the default currency symbol of the en-GB cutlure is the £, not the €, so to use the euro symbol, you'll have a couple of options to do: + Change the currency symbol in the Regional setting in the control panel. + Change the currency symbol at runtime using the
CurrencySymbol
property of theNumberFormatInfo
object. + Hard code the currency symbol when you do the number formatting.Thanks for the tips.
Josh Blair http://joshblair.blogspot.com/