private void DeleatBotten_Click(object sender, EventArgs e) { dataGridView1.Rows[dataGridView1.CurrentCell.RowIndex].Selected = true; DBProcs.deleteTheRow(dataGridView1); this.Hide(); PeopleForm peopleForm = new PeopleForm(); peopleForm.ShowDialog(); this.Close(); }
private void InsertUpdate_Click(object sender, EventArgs e) { dataGridView1.Rows[dataGridView1.CurrentCell.RowIndex].Selected = true; RowData rd = new RowData(dataGridView1); DBProcs.updateRow(rd); this.Hide(); PeopleForm peopleForm = new PeopleForm(); peopleForm.ShowDialog(); this.Close(); }