Hi,
I am trying to set the decimal places in the export to be a customizable setting. I am using the following lines of code
WHere the GetDecimalFormat would return "{0:#.##} for 2 decimal places.
But this snipet does not work. It renders on the csv witht the same number of decimal places as in the data. Are there similar properties for csv as there are for excel?
Thanks
Deepak
I am trying to set the decimal places in the export to be a customizable setting. I am using the following lines of code
col.ExcelExportType =
DisplayFormatType.Currency
col.ExcelExportFormatString = GetDecimalFormat()
WHere the GetDecimalFormat would return "{0:#.##} for 2 decimal places.
But this snipet does not work. It renders on the csv witht the same number of decimal places as in the data. Are there similar properties for csv as there are for excel?
Thanks
Deepak