void dgvEmailType_KeyDown(object sender, KeyEventArgs e) { if (e.KeyData == Keys.Delete) { if (dgvEmailType.SelectedRows != null) { foreach (DataGridViewRow dgvr in dgvEmailType.SelectedRows) { EmailType et = (EmailType)dgvr.DataBoundItem; et.Deleted = true; et.Save(); EmailTypes.List.Remove(et); } } } }