New to Telerik UI for WinForms? Start a free 30-day trial
ToolTips
Updated over 6 months ago
There are two ways to assign tooltips to cells in RadGridView, namely setting the ToolTipText property of a CellElement in the CellFormatting event handler, or as in most of the RadControls by using the ToolTipTextNeeded event.
Setting tooltips in the CellFormatting event handler
The code snippet below demonstrates how you can assign a tooltip to a data cell.
C#
void radGridView1_CellFormatting(object sender, Telerik.WinControls.UI.CellFormattingEventArgs e)
{
if (e.Row is GridViewDataRowInfo)
{
e.CellElement.ToolTipText = "Tooltip: " + e.CellElement.Text;
}
}
Figure 1: Using the formatting event to set the tooltips.

Setting tooltips in the ToolTipTextNeeded event
The code snippet below demonstrates how you can use ToolTipTextNeeded event handler to set ToolTipText for the given CellElement.
C#
private void radGridView1_ToolTipTextNeeded(object sender, Telerik.WinControls.ToolTipTextNeededEventArgs e)
{
GridDataCellElement cell = sender as GridDataCellElement;
if (cell != null && cell.ColumnInfo.Name == "Name")
{
e.ToolTipText = cell.Value.ToString();
}
}
Figure 2: Using the ToolTipTextNeeded event.

The ToolTipTextNeeded event has higher priority and overrides the tooltips set in CellFormatting event handler.