Private Sub DataGridView_CellFormatting(sender As Object, e As Telerik.WinControls.UI.CellFormattingEventArgs) Handles DataGridView.CellFormatting
If e.CellElement.ColumnInfo.HeaderText = "Name" Then
e.CellElement.ToolTipText = CellElement.RowInfo.Cells("Name2").Value
End If
End Sub
0
Dimitar
Telerik team
answered on 05 Dec 2014, 09:07 AM
Hello Jan,
Thank you for contacting us.
Since the formating event is fired very often, better solution will be to use the ToolTipTextNeeded event of the grid:
Private Sub radGridView1_ToolTipTextNeeded(sender As Object, e As Telerik.WinControls.ToolTipTextNeededEventArgs)
Dim cell As GridDataCellElement = TryCast(sender, GridDataCellElement)
Please let me know if there is something else I can help you with.
Regards,
Dimitar
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.