private void dgv_contenu_CellContentClick(object sender, DataGridViewCellEventArgs e)
 {
     try
     {
         if (dgv_contenu.CurrentRow.Cells["_id_"].Value != null)
         {
             Int32 id = Convert.ToInt32(dgv_contenu.CurrentRow.Cells["_id_"].Value);
             if (id > 0)
             {
                 ContenuStock f = ContenuStockBLL.One(id);
                 if (e.ColumnIndex == 4)
                 {
                     if (DialogResult.Yes == Messages.Confirmation(Mots.Supprimer.ToLower()))
                     {
                         if (ContenuStockBLL.Delete(f))
                         {
                             DeleteRowContenu(f);
                             ResetContenu();
                             Messages.Succes();
                         }
                     }
                 }
                 else
                 {
                     PopulateContenu(f);
                 }
             }
         }
     }
     catch (Exception ex)
     {
         Messages.Exception(ex);
     }
 }
 private void dgv_contenu_SelectionChanged(object sender, EventArgs e)
 {
     try
     {
         if (dgv_contenu.Rows.Count > 0)
         {
             if (dgv_contenu.CurrentRow.Cells["_id_"].Value != null)
             {
                 Int32 id = (Int32)dgv_contenu.CurrentRow.Cells["_id_"].Value;
                 if (id > 0)
                 {
                     ContenuStock f = ContenuStockBLL.One(id);
                     PopulateContenu(f);
                 }
             }
         }
     }
     catch (Exception ex)
     {
         Messages.Exception(ex);
     }
 }