Exporting DataGrid to Excel
-
I am searching for the code to export the datagrid columns in to the excel sheet. Most of the code i have seen are reading the each value one by one from the datagrid or dataset and writing in to excel sheet. But in Asp.net, there is an easy way to do it. Is there is any easy way to do in windows application also. Thanks to all.
-
I am searching for the code to export the datagrid columns in to the excel sheet. Most of the code i have seen are reading the each value one by one from the datagrid or dataset and writing in to excel sheet. But in Asp.net, there is an easy way to do it. Is there is any easy way to do in windows application also. Thanks to all.
You can export your data as Xml files, or comma delimited files which are easily read by Excel among other programs as well.
Regards:rose:
-
I am searching for the code to export the datagrid columns in to the excel sheet. Most of the code i have seen are reading the each value one by one from the datagrid or dataset and writing in to excel sheet. But in Asp.net, there is an easy way to do it. Is there is any easy way to do in windows application also. Thanks to all.