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

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

1 Reply

AD Administrator Syncfusion Team 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.

Loader.
Up arrow icon