private void PlanesReporte_Load() { List <ReportePlanes> consultaPlanes = new List <ReportePlanes>(); consultaPlanes = ReportesLogic.ObtenerPlanes(); reporte.LocalReport.DataSources.Clear(); reporte.LocalReport.DataSources.Add(new ReportDataSource("Planes", consultaPlanes)); }
private void PlanesReporte_Load(object sender, EventArgs e) { List <ReportePlanes> consultaPlanes = new List <ReportePlanes>(); consultaPlanes = ReportesLogic.ObtenerPlanes(); reportViewer1.LocalReport.DataSources.Clear(); reportViewer1.LocalReport.DataSources.Add(new ReportDataSource("Planes", consultaPlanes)); reportViewer1.RefreshReport(); }