Exemple #1
0
 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 FrmStudentEdit
                      (
                 dataGridView1.SelectedRows[i].DataBoundItem as Etudiant,
                 loadData
                      );
             f.ShowDialog();
         }
     }
 }
Exemple #2
0
 private void studentToolStripMenuItem_Click(object sender, EventArgs e)
 {
     FrmStudentEdit form = new FrmStudentEdit();
     form.MdiParent = this;
     form.Show();
 }
Exemple #3
0
        private void btnAdd_Click_1(object sender, EventArgs e)
        {
            Form f = new FrmStudentEdit(loadData);

            f.Show();
        }