Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Display curr in EUR in DataGrid for en-GB culture [modified]

Display curr in EUR in DataGrid for en-GB culture [modified]

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netvisual-studiocomdocker
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Josh Blair
    wrote on last edited by
    #1

    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, 2006

    Josh Blair http://joshblair.blogspot.com/

    M 1 Reply Last reply
    0
    • J Josh Blair

      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, 2006

      Josh Blair http://joshblair.blogspot.com/

      M Offline
      M Offline
      minhpc_bk
      wrote on last edited by
      #2

      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 the NumberFormatInfo object. + Hard code the currency symbol when you do the number formatting.

      J 1 Reply Last reply
      0
      • M minhpc_bk

        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 the NumberFormatInfo object. + Hard code the currency symbol when you do the number formatting.

        J Offline
        J Offline
        Josh Blair
        wrote on last edited by
        #3

        Thanks for the tips.

        Josh Blair http://joshblair.blogspot.com/

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups