private void dataGridView1_RowsAdded(object sender, DataGridViewRowsAddedEventArgs e)
 {
     if (dataGridView1.Rows.Count > 0)
     {
         Utilitaire.activerCellules_All(dataGridView1, e.RowIndex);
     }
 }
 public void vider()
 {
     for (int i = 0; i < dataGridView1.RowCount; i++)
     {
         Utilitaire.activerCellules_All(dataGridView1, i);
         for (int j = 0; j < dataGridView1.ColumnCount; j++)
         {
             dataGridView1.Rows[i].Cells[j].Value           = string.Empty;
             dataGridView1.Rows[i].Cells[j].Style.BackColor = Color.White;
         }
     }
 }
 private void modifierToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (dataGridView1.Rows.Count > 0)
     {
         if (dataGridView1.CurrentRow.Cells[1].ReadOnly == true)
         {
             Utilitaire.activerCellules_All(dataGridView1, dataGridView1.CurrentRow.Index);
         }
         else
         {
             Validate();
             mdl.Save();
             this.Refresh();
         }
     }
 }