// bind data based on parameters protected override void OnDataSourceDemanded(EventArgs e) { base.OnDataSourceDemanded(e); // get parameter values var dateFrom = dateFromParam.GetValue <DateTime>(); var dateTo = dateToParam.GetValue <DateTime>(); this.headerHelper.PrintDatesInterval(dateFrom, dateTo); this.headerHelper.PrintCurrentTime(DateTime.Now); this.DataSource = SimulatedReportData.GetBigData(dateFrom, dateTo); }
// bind data protected override void OnDataSourceDemanded(EventArgs e) { base.OnDataSourceDemanded(e); this.DataSource = SimulatedReportData.GetData(); }