How to export the grid's contents to a csv file.
Attached is a simple sample for exporting using MemoryStream to create a byte array.
Another solution is to use the Infragistics WebExcelExporter to export the grid to a worksheet in memory (using the ExportMode.Custom option).
Then loop through each cell in the exported workbook and build up a CSV string of all cell values.