go through this link to find out whether it is working for you
http://csharp.net-informations.com/datagridview/csharp-datagridview-export-excel.htm