private void buttonNew_Click(object sender, EventArgs e) { FormModify fmn = new FormModify(); fmn.ShowDialog(); FillGrid(); }
private void buttonEdit_Click(object sender, EventArgs e) { int i = dataGridView1.CurrentRow.Index; FormModify fme = new FormModify(this); fme.ShowDialog(this); FillGrid(); dataGridView1.CurrentCell = dataGridView1.Rows[i].Cells[0]; }