Memento

Memento

  • NA
  • 111
  • 133.5k

C# winform - how to delete DataGridView Row on a child form?

May 20 2012 9:11 AM
So, once more:
c# - winform - VS 2010 express I have two forms with a datagridview on each (frm01-dgv01 and frm02-dgv02) On the main form (frm01) i can select dgvRow, press Delete Key - and dgvRow will be deleted.
So, I go to the second form (buttonClick): - new frm02().Show();
But, when I press Delete Key - to delete dgvRow - nothing happend ! Delete Key doesn't function !
If I enter to CellEditMode - DeleteKey – works !
Both dgv has AllowUserToDeleteRow = true.
No dgv is bounded.


Answers (6)