Hi,
The standard DataFormat String {0:C2} will format a number as a currency, but of course it uses the one and only currency symbol appropriate to the current culture.
When the applicaiton has multiple currencies, I would like to format amounts of money with the appropriate currency symbol.
Effectively each row of data in a dataset which has amounts in "currency" will have the appropriate currency symbol as a column/field.
I have achieved the desired result in one way - by changing the text value of the relevant cells in the ItemDataBound event handler, but this seems a little awkward. I initially wanted to modify the DataFormat string, but can't see how to get to it (it is perhaps too late in ItemDataBound).
I was just wondering whether I had a resonable approach before I start to create many different forms.
The standard DataFormat String {0:C2} will format a number as a currency, but of course it uses the one and only currency symbol appropriate to the current culture.
When the applicaiton has multiple currencies, I would like to format amounts of money with the appropriate currency symbol.
Effectively each row of data in a dataset which has amounts in "currency" will have the appropriate currency symbol as a column/field.
I have achieved the desired result in one way - by changing the text value of the relevant cells in the ItemDataBound event handler, but this seems a little awkward. I initially wanted to modify the DataFormat string, but can't see how to get to it (it is perhaps too late in ItemDataBound).
I was just wondering whether I had a resonable approach before I start to create many different forms.