Hi,
Here's my development environment:
- .NET Framework 4.0
- Visual Studio 2010 Ultimate
- Office Professional Plus 2010
- Windows Enterprise 7, 64 bits
- Windows Forms
I've a combo box displaying the names of some companies (the parent table) and a report viewer displaying the financial statements of such companies (the child table). The code in the ComboBox.SelectedIndexChanged event is:
FinancialsReportViewer.RefreshReport()
The report viewer displays financial statements that don't correspond to the company in the combo box. However, when I click the built-in refresh button in the report viewer, the report refreshes and everything is OK. Another curious issue is that the ReportViewer.ReportRefresh event isn't triggered after an item in the combo box changes. I think solving this little bug should be easy.
In summary:
- When the selected item in the combo box changes, (a) the report viewer isn't refreshed and (b) the report refresh event isn't triggered.
- When I click the built-in refresh button, (a) the report viewer displays the correct information and (b) the report refresh event is triggered.
Thanks in advance,
Carlos Mallen