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.AlumnosSalas(id_sala); this.dgvAlumnosSala.Columns["ALUMNO"].DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleLeft; this.dgvAlumnosSala.Columns["DOCUMENTO"].DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight; this.dgvAlumnosSala.Columns["EDAD"].DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight; reportViewer1.Visible = true; DataSet informe = LogSalas.CantidadAlumnosSalas(); var reportPath = "GestionJardin.Reporte.Alumnos.CantidadAlumnosSala.rdlc"; ReportDataSource sReportDataSource = new ReportDataSource(); this.reportViewer1.LocalReport.ReportEmbeddedResource = reportPath; sReportDataSource.Name = "CantidadAlumnosSala"; sReportDataSource.Value = informe.Tables[0]; reportViewer1.LocalReport.DataSources.Add(sReportDataSource); this.reportViewer1.RefreshReport(); }