Articles in this section
Category / Section

How to export cell tooltips to excel as comment tips in WinForms GridGroupingControl?

1 min read

Export to excel with tooltips

In WinForms GridGroupingControl, to export cell Tooltips to excel as comment tips can be handled by using excelConverter_QueryExportRowRange event. Comment tips can be added by e.ExcelRange.AddComment()method.

C#

excelConverter.QueryExportRowRange += new GridGroupingExcelConverterControl.QueryExportRowRangeEventHandler(excelConverter_QueryExportRowRange);
excelConverter.ExportToExcel(this.gridGroupingControl1, saveFileDialog.FileName, exportingOptions);
void excelConverter_QueryExportRowRange(object sender, QueryExportRowRangeEventArgs e)
{
    GridTableDescriptor tableDescriptor = (GridTableDescriptor)e.Element.ParentTableDescriptor;
    int excelRowIndex = e.ExcelRange.Row;
    e.ExcelRange.AddComment().Text = "test";
}

VB

Private excelConverter.QueryExportRowRange += New GridGroupingExcelConverterControl.QueryExportRowRangeEventHandler(AddressOf excelConverter_QueryExportRowRange)
excelConverter.ExportToExcel(Me.gridGroupingControl1, saveFileDialog.FileName, exportingOptions)
void excelConverter_QueryExportRowRange(Object sender, QueryExportRowRangeEventArgs e)
    Dim tableDescriptor As GridTableDescriptor = CType(e.Element.ParentTableDescriptor, GridTableDescriptor)
    Dim excelRowIndex As Integer = e.ExcelRange.Row
    e.ExcelRange.AddComment().Text = "test"

Show the dialog box of exporting to excel in WinForms GridGroupingControl

Show the cell with tooltip in excel in WinForms GridGroupingControl

Samples:

C#: Export GGC to excel

VB: Export GGC to excel

Reference link: https://help.syncfusion.com/windowsforms/gridgrouping/exporting

Conclusion

I hope you enjoyed learning about how to export cell tooltips to excel as comment tips in WinForms GridGroupingControl.

You can refer to our WinForms GridGroupingControl’s feature tour page to know about its other groundbreaking feature representations. You can also explore our WinForms GridGroupingControl documentation to understand how to present and manipulate data.

For current customers, you can check out our WinForms components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our Winforms GridGroupingControl and other WinForms components.

If you have any queries or require clarifications, please let us know in the comment section below. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!

 

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied