I'm trying to implement a drag/drop functionality. I've declared event handlers for the grid's MouseDown and MouseMove properties. But because the event handlers are subscribed to grid events, even dragging the scrollbar causes the MouseMove event handler to be invoked.
Is there an event handler I can subscribe to for the data rows themselves? I only want to process the mouse events if the user has clicked on a row in the grid, but not anywhere else on the grid control.
Hi,
No, there's no other event. What you need to do is determine what part of the grid the mouse is over when you click. You do this by using the ElementFromPoint method. There are lots of KB articles on this:
Knowledge Base Results - ElementFromPoint