I am able to see the data when connecting the datasource to a grid, however when trying the same with the MS ReportViewer control, no data is displayed, but the following message is displayed, "The source of the report definition has not been specified"
How do I fix this problem?
Dim bsr As New BindingSource()
bsr.DataSource = dt
'dt.WriteXml(" D:\XMLoutput.xml") - Use this trick to create XML to design report
Dim reportDataSource As New Microsoft.Reporting.WinForms.ReportDataSource()
reportDataSource.Name = "Testingreport"
reportDataSource.Value = dt
Similar Code working with Grid:
Dim bs As New BindingSource()
bs.DataSource = dt
C1TrueDBGrid1.DataSource = bs
Dim FilteredDT As DataTable
Dim DV As New DataView(dt, SearchCriteria, Nothing, DataViewRowState.CurrentRows)
FilteredDT = DV.ToTable
C1TrueDBGrid1.DataSource = FilteredDT