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

Export to excel data formatting problem

1 Answer 86 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Peny
Top achievements
Rank 1
Peny asked on 06 Sep 2011, 11:43 AM
Hello,

I have a telerik:radgrid which contains the following column
<telerik:GridBoundColumn DataField="LITIGATE_PERSON_CIF" DataType="System.String"
                    HeaderText="CIF Καθού" UniqueName="LITIGATE_PERSON_CIF" DataFormatString="{0}">
                    <HeaderStyle Width="70px" />
                </telerik:GridBoundColumn>

The type of LITIGATE_PERSON_CIF column in DB is varchar(50). An example of data at this column is "9999940374268002".

When i export to excel this grid, i get the value 9999940374268000 at this field.

Should I use another format?

I thing that somehow it rounds the data. How could I avoid that?

Regards,
Peny

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 09 Sep 2011, 09:08 AM
Hi Peny,

I made a simple demo for you. Give it a try and let me know if you need further assistance.
For more information see this link:
Word/Excel export (HTML-based)

Best regards,
Daniel
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Tags
Grid
Asked by
Peny
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or