FCapo
asked on
vb.net mouse click
Hi,
How can I get the mouse to perform a right click instead of a left click when a user clicks the left mouse button in a specific datgridview column?
How can I get the mouse to perform a right click instead of a left click when a user clicks the left mouse button in a specific datgridview column?
ASKER
Hi,
the problem I'm having is when a user right clicks on a new row in the datagridview under a specific column, I set it to open up a form with various text strings, the user then chooses the string he wants by double clicking it, the form then closes and places the string he selected in the datagridview CELL that was last selected.
This works great on existing rows in the datagridview, but if they right click on a new row, the cell doesn't actually get selected, so when they choose the string, it will place it in the previous row's cell, just like is shown in the attached image
the problem I'm having is when a user right clicks on a new row in the datagridview under a specific column, I set it to open up a form with various text strings, the user then chooses the string he wants by double clicking it, the form then closes and places the string he selected in the datagridview CELL that was last selected.
This works great on existing rows in the datagridview, but if they right click on a new row, the cell doesn't actually get selected, so when they choose the string, it will place it in the previous row's cell, just like is shown in the attached image
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You can do this in the Datagridview's CellMouseClick event and check the ColumnIndex...
Open in new window