Exporting Datagrid to excel was pretty straight forward and so does exporting GridView control. The code for both of them is almost identical with one exception that in GridView we need to override the
Page.VerifyRenderingInServerForm method.
Check out my complete article
Exporting GridView to Excel