private void btn_Modifier_Click(object sender, EventArgs e)
 {
     Edit_Rubric modif = new Edit_Rubric();
     int i = dataGridView1.CurrentRow.Index;
     modif.Refer = int.Parse(dataGridView1.Rows[i].Cells[0].Value.ToString());
     modif.CodeRub = dataGridView1.Rows[i].Cells[1].Value.ToString();
     modif.LibellesRub = dataGridView1.Rows[i].Cells[2].Value.ToString();
     modif.Show();
 }
Exemple #2
0
        private void btn_Modifier_Click(object sender, EventArgs e)
        {
            Edit_Rubric modif = new Edit_Rubric();
            int         i     = dataGridView1.CurrentRow.Index;

            modif.Refer       = int.Parse(dataGridView1.Rows[i].Cells[0].Value.ToString());
            modif.CodeRub     = dataGridView1.Rows[i].Cells[1].Value.ToString();
            modif.LibellesRub = dataGridView1.Rows[i].Cells[2].Value.ToString();
            modif.Show();
        }