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";
}
AddHandler excelConverter.QueryExportRowRange, AddressOf excelConverter_QueryExportRowRange
excelConverter.ExportToExcel(Me.gridGroupingControl1, saveFileDialog.FileName, exportingOptions)
Private Sub excelConverter_QueryExportRowRange(ByVal sender As Object, ByVal e As QueryExportRowRangeEventArgs)
Dim tableDescriptor As GridTableDescriptor = CType(e.Element.ParentTableDescriptor, GridTableDescriptor)
Dim excelRowIndex As Integer = e.ExcelRange.Row
e.ExcelRange.AddComment().Text = "test"
End Sub
The
screenshots below illustrate the exporting of the cell tooltip to Excel.
Samples:
Reference Link: 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 comments below. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!