private void btnSave_Click(object sender, EventArgs e) { frmCreerEtudiant f = new frmCreerEtudiant(loadData); //Close(); f.Show(); }
private void btnEdit_Click(object sender, EventArgs e) { if (dataGridView1.SelectedRows.Count > 0) { for (int i = 0; i < dataGridView1.SelectedRows.Count; i++) { Form f = new frmCreerEtudiant ( dataGridView1.SelectedRows[i].DataBoundItem as Etudiant, loadData ); f.ShowDialog(); } } }