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

OnMouseDown() not called in renderer

Thread ID:





16354 Jul 13,2004 04:25 PM UTC Jul 13,2004 06:31 PM UTC WinForms 2
Tags: GridControl
Administrator [Syncfusion]
Asked On July 13, 2004 04:25 PM UTC

I have a class derived from GridStaticCellRenderer. I''m overriding the OnMouseDown() method but it never seems to get called. Anything I''m missing here? I have: protected override void OnMouseDown(int rowIndex, int colIndex, MouseEventArgs e) { Debug.WriteLine("Mousedown"); } But it just never gets called. Thanks. Pete

Administrator [Syncfusion]
Replied On July 13, 2004 05:38 PM UTC

In order for the renderer to get mouse messages, you need to override renderer.OnHitTest. Your override should return non-zero when you want the message to be handles by the renderer''s mouse handlers. The grid\samples\indepth\DerivedCellControlTutorial does this type of thing to handle the mouse messages associated with a LinkLabel cell.

Administrator [Syncfusion]
Replied On July 13, 2004 06:31 PM UTC

Excellent. That was my last issue for today (and hopefully a while). Thanks for all your help.


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