Hi Pawan,
You could achieve the desired behavior by handling the QueryImportExportCellInfo event of the GridExcelConverterControl. Please refer to the code:
void converter_QueryImportExportCellInfo(object sender, Syncfusion.GridExcelConverter.GridImportExportCellInfoEventArgs e)
{
if (e.Action == Syncfusion.GridExcelConverter.GridConverterAction.Export)
{
if (e.ColIndex == 2 && e.RowIndex == 2)
{
e.ExcelCell.RichText.Text = e.GridCell.Text;
IRichTextString rtf = e.ExcelCell.RichText;
//Formatting first 4 characters
IFont greenFont = myWorkBook.CreateFont();
greenFont.RGBColor = Color.Green;
rtf.SetFont(0, 3, greenFont);
//Formatting last 4 characters
IFont blueFont = myWorkBook.CreateFont();
blueFont.RGBColor = Color.Blue;
rtf.SetFont(4, 7, blueFont);
e.Handled = true;
}
}
}
Sample for your reference:
http://www.syncfusion.com/uploads/redirect.aspx?&team=support&file=GCXcelExport2066192961.zipPlease let me know if this helps.
Regards,
Jisha