我有这份关于 Reporting Services 的报告,我只需要打开一次,然后执行一些不会让它再次打开的数据库更新。发生的情况是,下面的代码在报告完全加载之前执行。有没有办法等到它被加载然后才执行其他代码?
ReportViewer1.ServerReport.Refresh();
modalPopupPrint.Show();
foreach (GridViewRow row in grdSucess.Rows)
{
//Do some LINQ updates in the database here.
}