Description:
I want only particular cells that are displayed in red in my XtraGrid to have a tooltip. How can I do this?
Answer:
Applies to:
XtraGrid, XtraTreeList, XtraVerticalGrid
Use the ToolTipController object and implement its GetActiveObjectInfo event to manage the hints in your Grid (or TreeList) dynamically. In particular, to determine whether a particular hint should be displayed, you should determine over which cell the mouse cursor is positioned.
Please examine the following tutorial demos which should help you understand how to obtain the HitInfo information for our controls:
GridHitInfo
(for the XtraGrid)HitInfo
(for the XtraTreeList)VertGridHitInfo
(for the XtraVerticalGrid).
You will also find some sample code in the ToolTipController help topic.
Read the following help topic for additional information and examples: Hints and Tooltips.
See Also:
How to customize the ToolTip for a TreeList cell
Showing a hint for a grid cell even if its content is completely visible
How to get multi-line tooltips with a specific width
How to programmatically display a tooltip for a control via the ToolTipController component
How to display a hint for an active editor within the XtraGrid