1

In my DataGridView, when I am editing a textbox cell, and I right click I get the following default Context Menu:

Dont want this!

How can I disable this "feature" and instead have my own context Menu popup?

Tizz
  • 820
  • 1
  • 15
  • 31

1 Answers1

4

Is this is what you asking about? You can find the similar question using this link.

    private void dataGridView1_EditingControlShowing(object sender, DataGridViewEditingControlShowingEventArgs e)
    {
        e.Control.ContextMenuStrip = myContextMenuStrip;
    }
Community
  • 1
  • 1
Mr Zak
  • 361
  • 2
  • 10
  • Yea I saw that and implemented it incorrectly so I thought it was wrong. ContextMenu and ContextMenuStrip work. – Tizz May 01 '13 at 16:42