Context menu in a dataGrid view

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi all.

I have added a ContextMenu to my DataGrid to allow the user to add and
remove rows in the DataGrid. When they want to remove a row, I would like
the row selected before the ContextMenu pops up. Right now, I cannot trap
the MouseUp or MouseDown events when the user performs the click-and-hold
stylus action needed to fire the ContextMenu. So the user is forced to first
select the row, and then bring up the ContextMenu. Any ideas on how to go
about getting that row selected? Thanks in advance!

BLEnge
 
Back
Top