We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

How to display a tooltip and be able to select cells with the mouse

Thread ID:

Created:

Updated:

Platform:

Replies:

22498 Dec 14,2004 09:59 AM Dec 14,2004 10:06 AM Windows Forms 1
loading
Tags: GridControl
Joe
Asked On December 14, 2004 09:59 AM

I am trying to display a tooltip over a cell. I have extended the GridTextBoxCellRenderer class and have overridden OnMouseHover, OnMouseHoverLeave, OnMouseDown and OnDraw to implement the tooltip code. A collegue previously overrode the OnHitTest method to return 1 so that the mouse events would fire. The problem is: returning 1 from the OnHitTest method causes the mouse multi selection of cells to not work anymore. Conversely returning 0 from OnHitTest means selections work fine but no mouse events are raised. Is there a (nice) way of enabling both selecting and mouse events? Regards, Joe

Administrator [Syncfusion]
Replied On December 14, 2004 10:06 AM

Is there some reason you are not using the built-in support for tips, setting style.CellTipText? This would be the simplest way to get this to work.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;