In trying to work with stored procedures to generate data for a Telerik report, I followed the tutorial located at this link:
I have no data source set for the report, and am setting the data source to null during the constructor of the report object.
The issue is that the NeedDataSource Event does not seem to be firing....Is there anything else that needs to be done for the report to make this event fire when there is no data source?
I have tried using NeedDataSource and Need_DataSource...but still cannot get the event to fire....? Any further information that the tutorial might not include would be very helpful....Thanks!
public MyReport()
{
InitializeComponent();
this.DataSource = null;
}
private void MyReport_NeedDataSource(object sender, System.EventArgs e)
{
this.sqlDataAdapter1.SelectCommand.Parameters[@"ID"].Value = this.ReportParameters["VolID"].Value;
Telerik.Reporting.Processing.Report rptTestReport = (Telerik.Reporting.Processing.Report)sender;
rptTestReport.DataSource = this.sqlDataAdapter1;
}
I have no data source set for the report, and am setting the data source to null during the constructor of the report object.
The issue is that the NeedDataSource Event does not seem to be firing....Is there anything else that needs to be done for the report to make this event fire when there is no data source?
I have tried using NeedDataSource and Need_DataSource...but still cannot get the event to fire....? Any further information that the tutorial might not include would be very helpful....Thanks!
public MyReport()
{
InitializeComponent();
this.DataSource = null;
}
private void MyReport_NeedDataSource(object sender, System.EventArgs e)
{
this.sqlDataAdapter1.SelectCommand.Parameters[@"ID"].Value = this.ReportParameters["VolID"].Value;
Telerik.Reporting.Processing.Report rptTestReport = (Telerik.Reporting.Processing.Report)sender;
rptTestReport.DataSource = this.sqlDataAdapter1;
}