Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
105
Disabling mouse up event handler on a double click row
posted

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

Parents
No Data
Reply
  • 469350
    Offline posted

    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.

Children
No Data