20myloves13

DeleteRow

Feb 26th, 2015
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.26 KB | None | 0 0
  1. foreach (DataGridViewRow row in dgvemployee.SelectedRows)
  2.             {
  3.                 if (!row.IsNewRow)
  4.                 {
  5.                     dgvemployee.Rows.Remove(row);
  6.                 }
  7.                 MessageBox.Show("Selected rows Deleted");
  8.             }
Advertisement
Add Comment
Please, Sign In to add comment