I am having a problem with event handlers stepping on each others toes. I am handling the mouse up event and when a certain cell is clicked I am opening up an external resource based on the information in that cell. I also handle the row double click event to open up a pop up with details about the row in my application. The problem I am having is that when the cell that opens the external resource is double clicked it opens the external resource twice and shows the detail window. Is there a way to stop the mouse up from firing on a double click. I tried to use the clicks property in the mouseeventargs that are passed to the event handler but it always is set to 1. Any help would be appreciated.
P.S. I am using Infragistics v10.3
Hi,
This really has nothing to do with the WinGrid, specifically. What you are talking about here is the way Windows works. A double-click, by definition, requires two clicks. The system doesn't know that you are going to click a second time, so the MouseDown, MouseUp and click event fire before the double-click. There's no way around that.
As a general rule, the best thing to do is - don't use MouseUp and DoubleClick for the some object on the screen, since you cannot distinguish between the two.