Good afternoon,
I have the following which nicely formats the exported column to currency (ex. $12,345.60):
((GridBoundColumn)exportGrid.Columns[13]).DataFormatString = "{0:C2}";
When the Excel export is done (BIFF format), the data comes out as text as "$12,345.60". It looks pretty, but the user wants to be able to perform calculations.
I have changed the text value in ItemDataBound to be preceded with an equal (=), which makes the exported data calculate right, but now the complaint is that it doesn't look like currency. It shows 12345.6.
Is there a way to get a BIFF export to look like currency and be treated as a numeric for calculations?
Thanks,
Steve
I have the following which nicely formats the exported column to currency (ex. $12,345.60):
((GridBoundColumn)exportGrid.Columns[13]).DataFormatString = "{0:C2}";
When the Excel export is done (BIFF format), the data comes out as text as "$12,345.60". It looks pretty, but the user wants to be able to perform calculations.
I have changed the text value in ItemDataBound to be preceded with an equal (=), which makes the exported data calculate right, but now the complaint is that it doesn't look like currency. It shows 12345.6.
Is there a way to get a BIFF export to look like currency and be treated as a numeric for calculations?
Thanks,
Steve