private void ConsultarDeportistas() { IControlDeportista control = new ControlDeportista(); dgvDeportistas.AutoGenerateColumns = false; dgvDeportistas.DataSource = control.ConsultarDeportistas(txtNumeroDocumento.Text, txtPrimerNombre.Text, txtSegundoNombre.Text, txtPrimerApellido.Text, txtSegundoApellido.Text); }
private void ReporteDeportistas_Load(object sender, EventArgs e) { ControlDeportista control = new ControlDeportista(); DataTable dsDeportistas = control.ConsultarDeportistas(); var source = new ReportDataSource("DSDeportista", dsDeportistas); rvReporteDeportistas.LocalReport.DataSources.Clear(); rvReporteDeportistas.LocalReport.DataSources.Add(source); rvReporteDeportistas.LocalReport.Refresh(); rvReporteDeportistas.Visible = true; rvReporteDeportistas.RefreshReport(); this.rvReporteDeportistas.RefreshReport(); }