Click here to Skip to main content
16,010,650 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have problem while i export data from a gridview to excel. other data columns are export well but the time column shows wrong in excel. like 48:10:20. i m sure there is no clock for 48 hr. i dont know why is it happening. do anyone have any idea......
Posted

Hi
If you are using an excel template, then set the format for that column in the template.
If you export directly, try to set the time format for that column before you put the data in that column.

Regards,
Naresh S.
 
Share this answer
 
Hi, use below link to export in excel

Export to Excel from GridView in C#[^]

It is a good link, and will give a required output.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900