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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:





22498 Dec 14,2004 02:59 PM UTC Dec 14,2004 03:06 PM UTC WinForms 1
Tags: GridControl
Asked On December 14, 2004 02:59 PM UTC

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 03:06 PM UTC

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.


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon

Live Chat Icon For mobile
Live Chat Icon