private void cbSala_SelectedValueChanged(object sender, EventArgs e) { id_sala = cbSala.SelectedValue.ToString(); btnImprimir.Visible = true; dgvAlumnosSala.Visible = true; lblInfo.Visible = false; dgvAlumnosSala.DataSource = logPersonas.ListaDocenteSala(id_sala); this.dgvAlumnosSala.Columns["DOCENTE"].DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleLeft; this.dgvAlumnosSala.Columns["DOCUMENTO"].DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight; this.dgvAlumnosSala.Columns["CELULAR"].DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight; this.dgvAlumnosSala.Columns["EMAIL"].DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleLeft; this.dgvAlumnosSala.Columns["DOMICILIO"].DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleLeft; }