Ejemplo n.º 1
0
 public void Refres()
 {
     if (mf.GetAllRequests(false, true).Rows.Count == 0)
     {
         radioButton1.Hide();
     }
     else
     {
         radioButton1.Show();
     }
 }
Ejemplo n.º 2
0
 private void radioButton1_CheckedChanged(object sender, EventArgs e)
 {
     Refres(radioButton1.Checked);
     dt = mf.GetAllRequests(radioButton1.Checked, false);
     if (dt != null)
     {
         dt.Columns.Remove("Flag");
         dt.Columns.Remove("Id");
         gridview.DataSource = dt;
         for (int i = 0; i < gridview.Columns.Count; i++)
         {
             gridview.Columns[i].AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
         }
         gridview.Columns[3].DisplayIndex = 0;
     }
 }