Does anyone know how I can disable the System Context Menu when a user right clicks in a DataGridViewTextBoxCell? I have tried to override the WndProc at the DataGridView
This worked for me:
private void dataGridView1_EditingControlShowing(object sender, DataGridViewEditingControlShowingEventArgs e) { e.Control.ContextMenu = new ContextMenu(); }
Just set the ContextMenu property to new (empty) ContextMenu in the EditingControlShowing event of the DataGridView.