Click here to Skip to main content
15,894,410 members
Articles / Programming Languages / C#

Exporting DataGridview To Excel

Rate me:
Please Sign up or sign in to vote.
4.79/5 (26 votes)
17 Feb 2013CPOL 215.6K   2   32  
How to export DataGridView data to Excel.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <configSections>
  </configSections>
  <connectionStrings>
    <add name="ExportingDataToExcel.Properties.Settings.ExportConnectionString"
      connectionString="Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|DataDirectory|\App_Data\Export.accdb;Persist Security Info=True"
      providerName="System.Data.OleDb" />
  </connectionStrings>
  <appSettings>
    <add key="con" value="Provider=Microsoft.ACE.OLEDB.12.0;Data Source=App_Data\\Export.accdb"/>
  </appSettings>
</configuration>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

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



Comments and Discussions