views:

28

answers:

1

I'm writing a Windows Forms app that uses a DataGridView control. I have row select enabled on the control. I would like to trap the DoubleClick event, but it doesn't seem to fire reliably - I often have to double-click on a row 2 or 3 times before the event is triggered. Could anyone point me to a way to capture this more reliably?

A: 

Look into the CellDoubleClick event. The EventArgs have the Row and Column indexes.

AJ
This is the event that I'm using. The problem is that it doesn't seem to track every double-click. The action seems to be ignored more often when I'm double-clicking on a row that isn't already selected.
Roger
Hmph, that's odd, but double-clicking is always a little random anyway. Have you tried RowDoubleClick?
AJ
There isn't a RowDoubleClick event, as far as I can tell.
Roger