We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to export CellCommentTips to Excel by using GridExcelConverterControl?

Platform: WinForms |
Control: GridControl

You can export the CellCommentTips of GridControl to excel by handling the QueryImportExportCellInfo event handler. In this event, the GridExcelTipStyleProperties is checked for ExcelTip properties and accordingly the comment is added to the IRange.


//Create grid excel converter object
Syncfusion.GridExcelConverter.GridExcelConverterControl gecc = new Syncfusion.GridExcelConverter.GridExcelConverterControl();
//Hook the QueryImportExportCellInfo event to Export the comments.
gecc.QueryImportExportCellInfo += new Syncfusion.GridExcelConverter.GridImportExportCellInfoEventHandler(gecc_QueryImportExportCellInfo);
//Export the Comments to the Excel
void gecc_QueryImportExportCellInfo(object sender, Syncfusion.GridExcelConverter.GridImportExportCellInfoEventArgs e)
    ExcelCommentTip.GridExcelTipStyleProperties style = new ExcelCommentTip.GridExcelTipStyleProperties(e.GridCell);
    if (style.HasExcelTipText)
        e.ExcelCell.AddComment().Text = style.ExcelTipText;



'Create grid excel converter object
Private gecc As New Syncfusion.GridExcelConverter.GridExcelConverterControl()
'Hook the QueryImportExportCellInfo event to Export the comments.
Private gecc.QueryImportExportCellInfo += New Syncfusion.GridExcelConverter.GridImportExportCellInfoEventHandler(AddressOf gecc_QueryImportExportCellInfo)
'Export the Comments to the Excel
Private Sub gecc_QueryImportExportCellInfo(ByVal sender As Object, ByVal e As Syncfusion.GridExcelConverter.GridImportExportCellInfoEventArgs)
 Dim style As New ExcelCommentTip.GridExcelTipStyleProperties(e.GridCell)
 If style.HasExcelTipText Then
  e.ExcelCell.AddComment().Text = style.ExcelTipText
 End If
End Sub


Showing comment tips in grid

Figure 1: Comment Tips In GGC


Exported comment tips in excel

Figure 2: Exported Comment Tips in Excel

Sample Link:




2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile