private void button4_Click(object sender, EventArgs e) { if (MessageBox.Show("Вы уверены что хотите удалить данного судью?", "Сообщение", MessageBoxButtons.YesNo) == DialogResult.Yes) { WorkWithBD.DeleteJudge(dataGridView1.CurrentRow.Cells[0].Value.ToString()); dataGridView1.Rows.Clear(); WorkWithBD.ReadJudgeForDataGridView(dataGridView1); } }