Version: Q3 2009
Visual Studio 2005 + windows 7
I have a report viewer1 in a form. I load a report to the report viewer. The subLoadReportHeader is just to load heading from a database. eg Report Title, etc.
    
In the someReport, I use NeedDataSource to bind the data.
    
So the report can only display with the heading but not the details. I need to click the refresh button in the report viewer to refresh so as to display the details.
What is wrong? Thanks.
                                Visual Studio 2005 + windows 7
I have a report viewer1 in a form. I load a report to the report viewer. The subLoadReportHeader is just to load heading from a database. eg Report Title, etc.
| Dim myReport1 As New someReport | 
| myReport1.oTable = oTable | 
| myReport1.subLoadReportHeader() | 
| Me.ReportViewer1.Report = myReport1 | 
In the someReport, I use NeedDataSource to bind the data.
| Private Sub someReport_NeedDataSource(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.NeedDataSource | 
| Me.DataSource = oTable | 
| End Sub | 
So the report can only display with the heading but not the details. I need to click the refresh button in the report viewer to refresh so as to display the details.
What is wrong? Thanks.
