Part of my inventory application allows the user to review their work so
far, shown in a DataGrid. I would like them to be able to edit rows, and
given the limited functionality of the Compact Framework DataGrid I wanted
to bring up an edit dialog by selecting it from a context menu.

For this to work I need to be able to determine the cell the user's held the
stylus on. In theory, this seemed simple - use the HitTest method of the
DataGrid with the co-ordinates provided by the grid's MouseDown event.
However, tap-and-hold appears not to generate any mouse events, only the
context menu's Popup event, which does not provide co-ordinates.

I'm stumped by this, and reluctant to force the user to first select their
cell before holding the stylus to bring up the edit menu. Anybody overcome
this problem successfully?

Thanks,
Peter


Hardware: Symbol PDT8000 running PocketPC 2002
Tools: C# (VS .NET 2003)