Hi,
could any one help to export several grids' data to a single export file?
I would appreciate, if any one oculd provide sample.
Thanks in advance,
Parthiban Sekar
Hi Parthiban,
You should just pass an array of WebDataGrids to the Export method:
protected void Button1_Click(object sender, EventArgs e)
{
WebDataGrid[] gridsToExport = new WebDataGrid[2];
gridsToExport[0] = WebDataGrid1;
gridsToExport[1] = WebDataGrid2;
WebExcelExporter1.Export(gridsToExport);
}
Let me know if you have any further questions.
but i need it in different sheets of the same excel file.
Thanks,