Hi,
I'm building a little SharePoint app, using the SPGrid to display data. I allowed filtering on the SPGrid, and finally I would like to export the data of the grid to some file. So I added a button to the WebPart for the export.
So far everything's ok.
Originally (before I added filtering to the SPGrid) I would run a query to get all my data and export that. Now with the filtering enabled I would need to get the data that's currently shown by the grid - if possible as a DataTable (since I need that for the further export-process).
How would I accomplish something like that?