Exemple #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            List <Alberti.Entity.Alumno> LisAlumnos = new List <Alberti.Entity.Alumno>();

            Datos.Alumno recupAlum = new Datos.Alumno();
            LisAlumnos           = recupAlum.RecuperarTodos();
            GridView1.DataSource = LisAlumnos;
            GridView1.DataBind();
        }
Exemple #2
0
 private void Lista_Load(object sender, EventArgs e)
 {
     try
     {
         List <Alberti.Entity.Alumno> LisAlumnos = new List <Alberti.Entity.Alumno>();
         Datos.Alumno recupAlum = new Datos.Alumno();
         LisAlumnos              = recupAlum.RecuperarTodos();
         comboBox1.DataSource    = LisAlumnos;
         comboBox1.DisplayMember = "ApellidoNombre";
         comboBox1.ValueMember   = "Id";
     }
     catch (Exception ee)
     {
         MessageBox.Show("no anda " + ee.ToString());
     }
 }