or
Private Sub Table1_NeedDataSource(sender As Object, e As System.EventArgs) Handles Table1.NeedDataSource Dim tbl As Telerik.Reporting.Processing.Table = TryCast(sender, Processing.Table) Dim obj As Object = tbl.Report.ReportHeader ' Dim sect As Processing.ReportSection = TryCast(Processing.ElementTreeHelper.GetChildByName(tbl.Report, "ReportHeaderSection1"), Processing.ReportSection)End Sub<Window x:Class="MCCHomeWork.Main" xmlns:vm="clr-namespace:MCCHomeWork" xmlns:trr ="http://schemas.telerik.com/wpf" Title="Main" Height="300" Width="529"> <Grid Name="MyGrid"> <trr:ReportViewer Name="rep1"/> <Button Content="Click" Name="button3" Width="75" Height="100" Click="button3_Click" /> </Grid></Window><trr:ReportViewer Name="rep1"/>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
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,