My context menu does not work

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Dom

    My context menu does not work

    I have a control called MyDataGridView, and the property
    ContextMenuStri p 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 DataGridViewCon trol. 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
Working...