# GrapeCity.ActiveReports.Viewer.Wpf.Viewer.RefreshReport

## Content

<div class="doc-site-dotnet-api-container">




<h1 id="GrapeCity_ActiveReports_Viewer_Wpf_Viewer_RefreshReport" data-uid="GrapeCity.ActiveReports.Viewer.Wpf.Viewer.RefreshReport" class="text-break">RefreshReport Event
</h1>
<div class="markdown level0 summary"><p>Occurs before the viewer refreshes the report.</p>
</div>
<div class="markdown level0 conceptual"></div>
<h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.ActiveReports.Viewer.Wpf.html">GrapeCity.ActiveReports.Viewer.Wpf</a></h6>
<h6><strong>Assembly</strong>: MESCIUS.ActiveReports.Viewer.Wpf.dll</h6>
<h5 id="GrapeCity_ActiveReports_Viewer_Wpf_Viewer_RefreshReport_syntax">Syntax</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public event EventHandler RefreshReport</code></pre>
</div>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.eventhandler">EventHandler</a></td>
      <td>Occurs before the viewer refreshes the report.</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_ActiveReports_Viewer_Wpf_Viewer_RefreshReport_remarks"><strong>Remarks</strong></h5>
<div class="markdown level0 remarks"><p>This event is triggered in several scenarios, including:</p>
<ul><li>Right after opening a new report.</li><li>Toggling/sorting and drill-through actions.</li><li>Pressing buttons: view report (parameters panel), galley mode, refresh, back to parent</li></ul>
In case of no error, it occurs before the <a class="xref" href="GrapeCity.ActiveReports.Viewer.Wpf.Viewer.LoadCompleted.html">LoadCompleted</a> event.
</div>
<h5 id="GrapeCity_ActiveReports_Viewer_Wpf_Viewer_RefreshReport_examples"><strong>Examples</strong></h5>
<pre><code class="lang-csharp">viewer.RefreshReport += (sender, e) =&gt;
{
    // Custom logic upon report refresh
    // For example, enable a 'Save' button only after the report has been refreshed
    saveReportButton.Enabled = true;
};</code></pre>

</div>
