# GrapeCity.ActiveReports.SectionReport.NoData

## Content

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




<h1 id="GrapeCity_ActiveReports_SectionReport_NoData" data-uid="GrapeCity.ActiveReports.SectionReport.NoData" class="text-break">NoData Event
</h1>
<div class="markdown level0 summary"><p>Occurs when there is no data to process and no records are returned by the report's data source.</p>
</div>
<div class="markdown level0 conceptual"></div>
<h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.ActiveReports.html">GrapeCity.ActiveReports</a></h6>
<h6><strong>Assembly</strong>: MESCIUS.ActiveReports.dll</h6>
<h5 id="GrapeCity_ActiveReports_SectionReport_NoData_syntax">Syntax</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public event EventHandler NoData</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 when there is no data to process and no records are returned by the report's data source.</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_ActiveReports_SectionReport_NoData_examples"><strong>Examples</strong></h5>
<pre><code class="lang-csharp">var sectionReport = new GrapeCity.ActiveReports.SectionReport();
sectionReport.Document.Printer.PrinterName = String.Empty;
sectionReport.NoData += (sender, e) =&gt;
	rpt.Cancel();</code></pre>

</div>
