private void DelDoctor_btn_Click(object sender, EventArgs e) { DataGridViewRow hclinic = new DataGridViewRow(); hclinic = Doctor_dataGrid.CurrentRow; DialogResult res = MessageBox.Show("Удалить: " + hclinic.Cells[0].Value.ToString() + hclinic.Cells[1].Value.ToString() +hclinic.Cells[2].Value.ToString()+"?", "Удаление", MessageBoxButtons.OKCancel); if (res == DialogResult.OK) { DBProcedure proc = new DBProcedure(); proc.del_doc(hclinic); StatusLbl.Text = "Доктор удален: " + hclinic.Cells[0].Value.ToString() + " " + hclinic.Cells[1].Value.ToString() + " " + hclinic.Cells[2].Value.ToString(); string sql = GetSQLStringDoctor(); Doctor_dataGrid.DataSource = ToDataTable(sql); } }