Just upgraded telerik reporting to 6.1.12.611 and I don't understand how to use the ReportSource property in code behind.
Here is my current section of code which worked in the previous version:
and this line of code no longer works:
Here is my current section of code which worked in the previous version:
If dtrReader.HasRows Then
Dim dt As New DataTable
dt.Load(dtrReader)
ReportViewer1.Visible = True
ReportViewer1.Report.Reports(0).DataSource = dt
ReportViewer1.RefreshReport()
End If
and this line of code no longer works:
ReportViewer1.Report.Reports(0).DataSource = dt and gives the warning that the Report property is now obsolete. Please use the ReportSource property instead. I can not figure out how to use the ReportSource property. Can someone please show me how to use it? Thanks,