If you're going with the solution of that post, then note that he's subscribing to the CellMouseDown
event, not the MouseDown
event. This has a different signature.
Also, as of .Net 2.0, you don't need all the delegate wrapping syntax, you can just +=
the function that matches the signature of the event delegate, like so:
// Your updated MouseDown handler function with DataGridViewCellMouseEventArgs
GridView1.CellMouseDown += this.dataGridView_MouseDown;
Then you won't have the error message, and can do what you see in the post.