reportviewer object doesn't update with event in other webpart
Hi,
I'm using a ReportViewer object in a webpart in a sharepoint site.
When the data changes on an event in another webpart, the report doen't update. If the event happens in the webpart of the reportviewer, the report in the reportviewer updates. The code i use:
protected override void CreateChildControls()
{
try
{
rvReport = new ReportViewer();
rvReport.ProcessingMode = ProcessingMode.Remote;
rvReport.ServerReport.ReportServerUrl = new System.Uri(_reportServer);
rvReport.ServerReport.ReportPath = _reportPath;
Controls.Add(rvReport);
rvReport.ServerReport.Refresh();
Label date1 = new Label();
date1.Text = DateTime.Now.ToString();
Controls.Add(date1);
}
catch (Exception ex)
{
Controls.Add(new LiteralControl(ex.ToString()));
}
}
Anybody an idea how i can do a refresh of the report?
Thanks,
Dennis

