Tap & hold on grid doesn't fire mousedown

  • Thread starter Thread starter Tim Frawley
  • Start date Start date
T

Tim Frawley

If I tap & hold on the grid the mousedown doesn't fire. The mouse
down will fire if I tap and hold and move the stylus.

I want Mousedown to fire when I tap and hold so that I can do hittest
for context menu popup.

Private Sub grdSpecies_MouseDown(ByVal sender As Object, _
ByVal e As System.Windows.Forms.MouseEventArgs) Handles
grdSpecies.MouseDown
Dim hitTest As DataGrid.HitTestInfo
grdSpecies = CType(sender, DataGrid)
hitTest = grdSpecies.HitTest(e.X, e.Y)
Select Case hitTest.Type
Case DataGrid.HitTestType.Cell
grdSpecies.Select(hitTest.Row)
End Select
End Sub
 
This is one of the annoying features of most of the grid type controls in the
CF and one of the reasons I use my own owner drawn grid for all my controls.
You want the same type of functionality as seen in Pocket Outlook.

Have you tried overriding the Grid control? not sure if this will work as I
don't know if the OnMouseDown is virtual or not.
 
Back
Top