private void btnXoa_Click(object sender, EventArgs e) { int r = dgvDocGia.CurrentCell.RowIndex; int rSelected = (int)dgvDocGia.Rows[r].Cells[0].Value; DialogResult traloi; traloi = MessageBox.Show("Ban co muon xoa mau tin nay ko?", "Tra loi" , MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (traloi == DialogResult.Yes) { int MaUser = int.Parse(txtMaUser.Text); db.sp_Delete_User(MaUser); LoadData(); MessageBox.Show("Da Xoa Xong!"); } else { MessageBox.Show("Ban Da Bam Khong!"); } ClearClickedData(); }