Hi Jiri
By default
while exporting the grid control it will export the cell value, you can handle
that by using the cell export event handlers as shown in the following code
snippet,
grid.ExportToExcel("Sample.xls", ExcelVersion.Excel97to2003,
CellExportingHandler);
In the
CellExpotingHandler method you can provide necessary formula to the particular
cell range to make it work.Please find the CodeSnippet for
CellExportingHandler.
private static void CellExportingHandler(object sender, ExportingToExcelEventArgs e)
{
e.Range.CellStyle.Font.Size = 12;
e.Range.CellStyle.Font.FontName = "Segoe
UI";
//You can provide necessary
formula here inorder to move to another worksheet
e.Range.Formula = " =Sheet1!A3";
e.Handled = true;
}
Please let us know if you have any
concern.
Regards
Pradeepa