locked
Datagridview onMouseClick onMouseDoubleClick RRS feed

  • Question

  • Hello all,

    I have a custom DatagriedViewCell and i want different actions if the User clicks or doubleClicks on the cell. But only the event OnMouseClick will be processed. Without any action at the onMouseClick event (msgBox here)  the Program steps into the OnMouseDoubleClick event.

    What to do? The e.clicks property is always 1.

    cu

    phil

     

    Protected Overrides Sub OnMouseDoubleClick(ByVal e As DataGridViewCellMouseEventArgs)

      'MyBase.OnMouseDoubleClick(e) 'needed?

      MsgBox("Double Click")

    End Sub

    Protected Overrides Sub OnMouseClick(ByVal e As DataGridViewCellMouseEventArgs)

       'MyBase.OnMouseClick(e) 'needed?

       MsgBox("Click")

    End Sub

    Tuesday, April 18, 2006 2:45 PM

Answers

All replies