private void xoa_Click(object sender, EventArgs e) { foreach (DataGridViewRow r in dsdkhp.Rows) { if ((bool)r.Cells["chon"].Value == true) { dal_dkhp.deleteDKHP_sv(r.Cells["masv"].Value.ToString(), r.Cells["mamh"].Value.ToString()); } } dt = dal_dkhp.loadDSDKHP(dssv.SelectedValue.ToString()); initGrid(dssv.SelectedValue.ToString()); }
private void xoa_Click(object sender, EventArgs e) { foreach (DataGridViewRow r in listDKHP.Rows) { if ((bool)r.Cells["chon"].Value == true) { dal_dkhp.deleteDKHP_sv(r.Cells["masv"].Value.ToString(), r.Cells["mamh"].Value.ToString()); } } //string masv = listSV.Rows[listSV.CurrentCell.RowIndex].Cells["masv"].Value.ToString(); initGriddkhp(masv); }