private void Form2_Load(object sender, EventArgs e) { try { DataTable dt = Al.ListadoAlumnos(); dataGridView1.DataSource = dt; } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void Form2_Load(object sender, System.EventArgs e) { DataTable dt = Al.ListadoAlumnos(); dataGridView1.DataSource = dt; }