private void btnModifier_Click(object sender, EventArgs e) { if (dataGridView1.SelectedRows.Count > 0) { for (int i = 0; i < dataGridView1.SelectedRows.Count; i++) { Form f = new CreateEtudiant ( dataGridView1.SelectedRows[i].DataBoundItem as Etudiants, loadData ); f.ShowDialog(); } } }
private void btnCreer_Click(object sender, EventArgs e) { Form f = new CreateEtudiant(loadData); f.Show(); }
private void etudiantsToolStripMenuItem_Click(object sender, EventArgs e) { Form f = new CreateEtudiant(); f.Show(); }