Deanna,
You can use the API for exporting any tabular/table data. Check this out:
DataSet ds = getYourDataSetHere();
// formatting the column name to remove some unnecessary characters
foreach (DataColumn dc in ds.Tables[0].Columns)
{
dc.ColumnName = dc.ColumnName.Replace("RS_", "").Replace("#", "");
}
foreach (DataRow dr in ds.Tables[0].Rows)
{
// format your date as needed
}
ds.AcceptChanges();
DataExportHelper eh = new DataExportHelper(ds);
eh.ExportData((DataExportFormatEnum.XLSX, Page.Response);
They key is the DataSet
you're sending to the ExportHelper
class needs to be formatted in the way you want the output to be. This doesn't happen when you use the out of the box controls.
Brenden