This article will show you to Export your GridView to Excel File. I have used C# Language to perform this task. Exporting to Excel/CSV provide the best way to keep your record’s Soft Copy on your HardDisk. To Export the GridView we need to use some specific class. These classes are StringWriter and HtmlTextWriter. Actually we are just writing our GridView Data using these two classes in Excel File. Also we can set the Excel File Name as well as Heading, TabPage name etc by writing code in our C#.NET Application.