Context menu in a dataGrid view

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
 
M

Mark Dykun

Use the MouseDown, MouseUP events and handle the popup of the menu manually

Mark
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top