This article shows how to export a GridView using OPENXML.
Hi guys. In this article I will show how to export a GridView table into a document using the Open XML.Download the OPENXML using this location http://www.microsoft.com/en-in/download/details.aspx?id=30425.After downloading the SDK install the .exe into your PC.Now open a new project in your C# tool.Add the OpenXML SDK reference to your project. Also include Windowsbase in the references.Now use the following namespace in the code.
Then open the document and pass the data in the GridView using the following code.
Learn Basics of XML