Пример #1
0
        private void FormReportes_Load(object sender, EventArgs e)
        {
            ReportDataSource datasource = new ReportDataSource("Productos", ProductoBL.CargarProductos());

            this.reportViewer1.LocalReport.DataSources.Clear();
            this.reportViewer1.LocalReport.DataSources.Add(datasource);
            this.reportViewer1.RefreshReport();
        }
Пример #2
0
 private void CargarProductos()
 {
     dtgProductos.AutoGenerateColumns = false;
     dtgProductos.DataSource          = ProductoBL.CargarProductos();
 }