Hello,

Export Data from GridView to Excel, Word, HTML with C#
Method in this article may be helpful for you.