none
On close of the child form consisting of report viewer, Parent form closing event is called. It eventually closes both windows. RRS feed

  • Question

  • My child form loads a local report using the report viewer.</p><p>And i am loading the report on form load event . The moment i close the form the parent form is getting closed . No errors are popped. ;Tried debugging using F11

    My child form code is

    this.reportViewerTktValidationReport.ProcessingMode = ProcessingMode.Local;

                   

    this.reportViewerTktValidationReport.LocalReport.ReportPath = @"ReportTktValidationReport.rdlc";

                   

    DataTabledt = newDataTable();

                    dt = GetData(SyncDate);            

                   

    ReportDataSourcerdS = newReportDataSource("DataSet1", dt);

                   

    this.reportViewerTktValidationReport.LocalReport.DataSources.Clear();

                   

    this.reportViewerTktValidationReport.LocalReport.DataSources.Add(rdS);              

                   

    this.reportViewerTktValidationReport.LocalReport.Refresh();

                   

    this.reportViewerTktValidationReport.RefreshReport();

    Saturday, July 6, 2013 6:24 AM