KB Article A2566
Visible to All Users

How to display hints only for particular cells

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

Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.