I have several DataGridViews on a form.
Each grid has the same ContextMenu.
Is there a simple way to tell which grid the right click came from?
Thanks.
Printable View
I have several DataGridViews on a form.
Each grid has the same ContextMenu.
Is there a simple way to tell which grid the right click came from?
Thanks.
If you want to know how to do something with the ContextMenuStrip then the very first thing you should do is read the documentation for that class. If you had done that then you'd already know that you need to use the SourceControl property.
Thanks, I was looking at the DataGridView or the ContextMenuItem.
Thanks for your help.