CellToolTipTextNeeded Event

Occurs when a cell's ToolTip text is needed.


Public Event CellToolTipTextNeeded As CellToolTipTextNeededEventHandler

Applies To

Grid Object


The following parameters are available:

Parameter Description
ToolTipText Gets or sets the ToolTip text.
Row Gets a value indicating the row index of the cell that the event occurs for.
Col Gets a value indicating the column index of the cell that the event occurs for.


The CellToolTipTextNeeded event occurs only when the grid control DataSource property is set or its VirtualMode property is true.

When you handle the CellToolTipTextNeeded event, the ToolTip text you specify in the handler is shown whenever the mouse pointer is over a cell and the control ShowCellToolTips property value is true. The CellToolTipTextNeeded event is useful when you want to display ToolTips determined by the current state or value of a cell.

The CellToolTipTextNeeded event also occurs whenever the value of the Cell.ToolTipText property is retrieved, either programmatically or when the mouse pointer enters a cell.

You can use the Col and Row properties to determine the state or value of a cell, and use this information to change or modify the CellToolTipTextNeededEventArgs.ToolTipText property. This property is initialized with the value of the cell ToolTipText property, which the event value overrides.