Export GridView contents to XML file or other format
Posted on 2011-09-07
I am using a component one as.net gridview. This will be used to display data from a variety of sources. I would like to be able to use the component one ReportViewer control to allow the user to view, print and export the contents of the GridView. This is so they can use the in-built features of the GridView control to filter, group, etc.
My thinking at the moment is I will need to somehow create an XML file based upon the format and data of the GridView and then use this XML as the source for the ReportViewer.
Does anyone have any suggestions on the best way to approach this or is my thinking the best way? Any suggestions appreciated.