private void cbCurso_SelectedValueChanged(object sender, EventArgs e) { Curso = this.cbCurso.SelectedItem.ToString(); CursoLogic lCurso = new CursoLogic(); Materia mat = lCurso.GetMateria(Curso)[0]; this.txtMateria.Text = mat.Descripcion; bindingSource1.DataSource = GetDataProfesor(); this.dgvAlumnos.DataSource = bindingSource1; this.dgvAlumnos.AllowUserToResizeColumns = false; }