0

I am using a GridView and I need to show the currency in Arabic culture so I used this code which is working very well,

DataFormatString="{0:c}"

The results will be like this : د.ك.‏ 55.000 Now what I want is to change it like this : 55.000 K.D ???

Bas Slagter
  • 9,831
  • 7
  • 47
  • 78
HAJJAJ
  • 3,667
  • 14
  • 42
  • 70

1 Answers1

1

Have you tried DataFormatString = "{0:0.000} K.D."?

As shown in this example.

El Ronnoco
  • 11,753
  • 5
  • 38
  • 65
  • well, this will not solve the whole problem!! because the website is multilingual and I want to see the currency in Arabic format like this " د.ك.‏ 55.000" and in the English like this "55.000 K.D" your way will make English only all the time – HAJJAJ Sep 27 '11 at 13:36
  • Errm you kind of left that fact out of your original question! :) Well, on what basis are you going to determine which country the user is viewing your site from? Provided you can determine this correctly, `Select Case` on their location. Perhaps a separate question in itself... – El Ronnoco Sep 27 '11 at 13:39
  • Presumably you will also need to change text on your site from Arabic to English too? You may want to look at [this question](http://stackoverflow.com/questions/1238180/finding-clients-location-in-an-asp-net-page) – El Ronnoco Sep 27 '11 at 13:41
  • it's only two languages Arabic and English, "ar-KW" and "en-US" but the currency should be KW only not USD – HAJJAJ Sep 27 '11 at 13:42
  • let us [continue this discussion in chat](http://chat.stackoverflow.com/rooms/3827/discussion-between-hajjaj-and-el-ronnoco) – HAJJAJ Sep 27 '11 at 13:50