Skip to content

How to hide cut,copy, paste menu (shortcut menu) in Datagridview cell?

Santosh

Asked Feb 13, 2006, 8:06 PM EST1 answer
Share
LinkedInX
when a content of the cell is selected and right mouse button is clicked , the default shortcut menu is getting displayed.

How to avoid shortcut menu?

santosh

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    handle the following event of datagridview

    TypeScript
    private void dgv_EditingControlShowing(object sender, DataGridViewEditingControlShowingEventArgs e)
    {
    ((DataGridViewTextBoxEditingControl)e.Control).ShortcutsEnabled = false;
    
    }
    0