[SOLVED] DataGridView not fired mouse right click and popup problem (Wisej 2.0.12.0)

Answered
0
0

Hi all,

i’m tring to show a user popup just below a DataGridView row for a quick edit (i need to do some quick work that a simple cell edit cannot do).

Some issue that i have encountered:

  • Right click is not fired on DataGridView_MouseClick
  • Location of MouseEventArgs is different from console mouse click, it’s a bug or i’m doing something wrong ?

 

Thanks for any help.

 

  • You must to post comments
Best Answer
0
0

Hi Simone,

Right click not fired for MouseClicks in a DGV is a bug (logged as #1803).
Will be fixed in the next release.
As a workaround you can use MouseUp or MouseDown events.
Both work fine with the right button.

For the coordinates, they are relative to the control (in that case the datagrid,
or to a cell in case of a CellEvent).
You´ve probably mixed them with the browser coordinates which are relative to the page.
Please use conversion functions like PointToScreen, RectangleToScreen, PointToClient, RectangleToClient
to convert from client to screen and vice versa.

The using block you have commented in your code as a question fails because the component is disposed
after leaving the block.

Best regards
Frank

  • You must to post comments
0
0

Hi Simone,

#1803 is fixed in releases 1.5.56 / 2.0.13.

Best regards
Frank

  • You must to post comments
0
0

Hi Frank,

thank you, all make sense.

 

Work perfectly with PointToScreen!

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.