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

[Solved] CSV formatting

1 Answer 115 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jols
Top achievements
Rank 2
Jols asked on 20 May 2009, 04:40 AM
Good day to all,

                        i have a question about formatting the values of a column when exporting to CSV format..coz i have a column which start at zero its look like this 000001 when i  view the exported data its shows only 1 the zero is omitted how can format that column to retain it..and where do i find the csvcellformatting..please help

thanks a lot

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 20 May 2009, 06:36 AM
Hello Jols,

You can try wrapping the cell contents with nbsp tags by setting the DataFormatString for the column as shown below so that the content can be exported as such:

aspx:
<telerik:GridBoundColumn DataFormatString="&nbsp;{0}&nbsp;" DataField="Id"></telerik:GridBoundColumn> 

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