I have a RadGrid I'm exporting to excel but for cells with zeros it's not formating cell for Decimal with two places. I'm using the below to set the cell text and it works fine for Cell values other than Zero.
cell.Text = decValue.ToString("n2")
1 Answer, 1 is accepted
0
Doncho
Telerik team
answered on 02 Jul 2020, 03:54 PM
Hi Chuck,
The way cell formatting should be applied depends on the Excel export format used. Therefore you can check out the following resources respectively tho the different Excel export formats provided by the RadGrid:
Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic. Our thoughts here at Progress are with those affected by the outbreak.