How to export cell tooltips to excel as comment tips in WinForms GridGroupingControl?
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"
Samples:
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!