[SOLVED] Double-click on DataGridView scroll up or down arrows produces double click event for the DataGridView,

Answered
0
0

Hello Support.

I have noticed that if I have a DataGridView that has the vertical scroll bar showing and I double click on either the up or down arrows that are at the top and bottom of the vertical scroll bar the DataGridView fires a DoubleClick event. If I am doing something on the double click event then that method is called and, typically for my app, an edit window is opened. This is confusing for the user because they just expected the DataGridView to scroll. If I am not catching the DoubleClick event then the DataGridView scrolls as expected.

The DoubleClick event doesn’t fire if I double click in the area of the vertical scroll bar where the scroll bar moves (doing this results in the DataGridView scolling as expected), only the arrows at the top and bottom of the scroll bar.

I guess this is not really a question, just an observation, and for me is not a priority issue.

Thanks

Andrew

  • You must to post comments
Best Answer
0
0

Hi Andrew,

thanks for reporting that problem. However I cannot reproduce with the latest internal build.
What Wisej build are you using ? It might have been fixed in the meantime but I want to track it down
to make sure.

Best regards
Frank

  • Andrew Pearce
    Hello Frank. I opened Wisej Auto Updater and it says 2.0.13.0. To test this problem I opened the WiseJ Samples that I had downloaded a while ago and opened the DataTableWindow.cs file, selected the DataGridView and anchored it Top,Bottom,Left,Right. then I went to the Properties window and double clicked in the DoubleClick event. I added a MessageBox call to the double click handler so it looks like: private void dataGridView1_DoubleClick(object sender, EventArgs e) { MessageBox.Show(“Hello”); } I set the TreeGrid project as my startup project and ran it, I clicked the DataGrid Example button then dragged the bottom of the window up so that the DataGridView couldn’t show all the entries and the vertical scrollbar was displayed. I then clicked quickly a few times on the down arrow at the bottom of the vertical scroll bar and after a few clicks I see the “Hello” message box appear. Hope this helps, I can create a test solution if you like, or a video showing the problem. Thanks, Andrew
  • Frank (ITG)
    Thanks Andrew for your detailed description. However I still could not reproduce it here yet. What browser are you using ? A test solution would be great just to make sure that there is no difference in our tests. You can either post it here or send it to frankATiceteagroup.com Best regards, Frank
  • Andrew Pearce
    Hello Frank. I set up a demo solution and it all worked ok – no doubleclick event was fired. It was a new solution so was using version 2 of wisej. I checked the application that I first noticed the problem on and also the wisej samples I tested it on and they are both still using a version 1 version of wisej.. It seems that the problem has been fixed since whichever version 1 version is installed on my machine. I do have version 2 installed on my PC but haven’t converted my application to use it yet. It looks like I need to do that now ! Thanks for your time in checking this problem out. Next time I will make sure I am on the latest version before contacting you. Andrew.
  • Frank (ITG)
    No worries, Andrew. Thanks for clarifying that issue. Best regards, Frank
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.