I have a control called MyDataGridView, and the property
ContextMenuStrip is set to ContextMenu Control.
The problem is ... when I write click on MyDataGridView, the context
menu comes up in edit mode. That is, I can click on an item and edit
it. Also, the menu does not go away after I click on it.
One big complication. As I said, MyDataGridView is a user-control
that extends the DataGridViewControl. It overrides the mousedown
event. In the override, I call a new Event ("MouseDownPrep") in which
I let the subscriber set a variable in the Args object, that cancels
the MouseDown event. Hope that makes sense.
Any ideas on how to fix this?
Dom
Dom - 03 Mar 2008 20:10 GMT
I decided that something must have gone wrong in the designer code. I
removed everything concerning the context menu, then redid all the
work. Now it works fine. So I withdraw this post.
Dom
> I have a control called MyDataGridView, and the property
> ContextMenuStrip is set to ContextMenu Control.
[quoted text clipped - 12 lines]
>
> Dom