This is a migrated thread and some comments may be shown as answers.

Excel Cell Format

1 Answer 149 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Hamed
Top achievements
Rank 1
Hamed asked on 02 Jan 2011, 08:38 AM
Hello,

I have a cell in my grid with value 004. When I export this gridview to Excel, the report lose this formatting and just show 4 in the excel cell.what shoud i do to save format of numbers in excel cell format?

Someone can help me?

Thx
Hamed

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 03 Jan 2011, 05:48 AM
Hello Hamed,

Try setting DataFormatString for the column as shown below and see whether it is working fine.

ASPX:
<telerik:GridBoundColumn DataField="Code" UniqueName="Code" DataFormatString=" {0} " 
</telerik:GridBoundColumn>


Thanks,
Princy.
Tags
Grid
Asked by
Hamed
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or