Esempio n. 1
0
 void CargarLista()
 {
     try
     {
         NGrado         n     = new NGrado();
         List <EGrados> Lista = n.ListaGrados();
         dataGridView1.DataSource = Lista;
         for (int i = 0; i < dataGridView1.RowCount; i++)
         {
             if (Convert.ToBoolean(dataGridView1.Rows[i].Cells["Activo"].Value.ToString()) == false)
             {
                 dataGridView1.Rows[i].DefaultCellStyle.ForeColor = Color.Red;
             }
             else
             {
                 dataGridView1.Rows[i].DefaultCellStyle.ForeColor = Color.Black;
             }
         }
         dataGridView1.Columns[0].Visible = false;
         dataGridView1.Columns[2].Visible = false;
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Esempio n. 2
0
        void CargarGrado()
        {
            NGrado         n     = new NGrado();
            List <EGrados> lista = n.ListaGrados();

            cbmGrados.DisplayMember = "Grado";
            cbmGrados.ValueMember   = "GradoId";
            cbmGrados.DataSource    = lista;
        }
Esempio n. 3
0
 void CargarGrados()
 {
     try
     {
         NGrado         n           = new NGrado();
         List <EGrados> listaGrados = n.ListaGrados();
         listBox2.DataSource    = listaGrados;
         listBox2.DisplayMember = "Grado";
         listBox2.ValueMember   = "GradoId";
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Esempio n. 4
0
 void CargarGrados()
 {
     try
     {
         NGrado         n = new NGrado();
         List <EGrados> L = n.ListaGrados();
         LbxGrado.DataSource    = L;
         LbxGrado.DisplayMember = "Grado";
         LbxGrado.ValueMember   = "GradoId";
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Esempio n. 5
0
 void CargarGrados()
 {
     try
     {
         NGrado         n          = new NGrado();
         List <EGrados> listaGrado = n.ListaGrados();
         cbmGrados.DisplayMember = "Grado";
         cbmGrados.ValueMember   = "GradoId";
         cbmGrados.DataSource    = listaGrado;
         cbmGrados.Text          = "Seleccione un Grado";
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }