コード例 #1
0
 private void recargaGRID()
 {
     try {
         BaseResponse <List <Carreras> > carreras = carreraBLL.GetCarrera();
         tabla_carreras.DataSource = carreras.Results;
         this.tabla_carreras.Columns["IdCarrera"].Visible = false;
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message + " TRACE : " + ex.StackTrace);
     }
 }
コード例 #2
0
 private void fillCombo()
 {
     try
     {
         BaseResponse <List <Carreras> > carrera = carreraBLL.GetCarrera();
         cmbCarrera.DataSource    = carrera.Results;
         cmbCarrera.ValueMember   = "IdCarrera";
         cmbCarrera.DisplayMember = "Nombre";
         cmbCarrera.SelectedValue = "valuemember value";
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message + " TRACE : " + ex.StackTrace);
     }
 }