I'm using visual studio 2005 and I've created a datagridview control with a contextMenuStrip control associated with it.
My problem is that I need to know what cell the user clicked on (All I really need is the row) so that I can process what the user clicked on in the context menu properly.
This is the prototype for one of the handlers I get:
private void openDetailsToolStripMenuItem_Click(object sender, EventArgs e)
how would I go about retrieving the row number in the datagridview that the user right clicked on to trigger the context menu?
*** I DO NOT WANT TO RUN IN VIRTUAL MODE ***
I know of a way to solve this problem in virtual mode, but due to the way data is managed, and the fact that this is a relativly small set of data being displayed, I would prefer not to have to write extra handlers for celldataneeded etc.
Thank you in advance for your reply :)