private void btnHSXoa_Click(object sender, EventArgs e) { var db = new CSDL(); if (MessageBox.Show("Bạn muốn xóa học sinh " + dgvHocSinh.CurrentRow.Cells["TenHS"].Value.ToString() + " ?", "Warning!!!", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.Yes) { db.del_dataHS(dgvHocSinh.CurrentRow.Cells["MaHS"].Value.ToString()); } // Hien thi mess thong bao LoadHS(); }