コード例 #1
0
 public void RemplireTable()
 {
     if (TeleConsultationController.TClist().Rows.Count > 0)
     {
         dgv_teleconsultation.DataSource       = TeleConsultationController.TClist();
         dgv_teleconsultation.AutoSizeRowsMode = DataGridViewAutoSizeRowsMode.DisplayedCells;
         dgv_teleconsultation.Columns["Description"].DefaultCellStyle.WrapMode = DataGridViewTriState.True;
         dgv_teleconsultation.Columns["Email1"].Visible = false;
         remplireData();
         NoResult_lbl1.Visible = false;
     }
 }
コード例 #2
0
 private void search_txtbox_TextChanged(object sender, EventArgs e)
 {
     if (search_txtbox.Text != "")
     {
         if (TeleConsultationController.TcRecherche(search_txtbox.Text).Rows.Count > 0)
         {
             NoResult_lbl1.Visible                 = false;
             dgv_teleconsultation.DataSource       = TeleConsultationController.TcRecherche(search_txtbox.Text);
             dgv_teleconsultation.AutoSizeRowsMode = DataGridViewAutoSizeRowsMode.DisplayedCells;
             dgv_teleconsultation.Columns["Description"].DefaultCellStyle.WrapMode = DataGridViewTriState.True;
         }
         else
         {
             dgv_teleconsultation.DataSource = null;
             NoResult_lbl1.Visible           = true;
         }
     }
     else
     {
         RemplireTable();
     }
 }