# GrapeCity.ActiveReports.SectionReport.FetchData

## Content

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




<h1 id="GrapeCity_ActiveReports_SectionReport_FetchData" data-uid="GrapeCity.ActiveReports.SectionReport.FetchData" class="text-break">FetchData Event
</h1>
<div class="markdown level0 summary"><p>Occurs for each data record processing.</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_FetchData_syntax">Syntax</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public event SectionReport.FetchEventHandler FetchData</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="GrapeCity.ActiveReports.SectionReport.html">SectionReport</a>.<a class="xref" href="GrapeCity.ActiveReports.SectionReport.FetchEventHandler.html">FetchEventHandler</a></td>
      <td>Occurs for each data record processing.</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_ActiveReports_SectionReport_FetchData_examples"><strong>Examples</strong></h5>
<pre><code class="lang-csharp">var sectionReport = new GrapeCity.ActiveReports.SectionReport();
sectionReport.Document.Printer.PrinterName = String.Empty;
sectionReport.FetchData += (sender, e) =&gt;
{
	while (_reader.Read())
	{
		sectionReport.Fields["CategoryName"].Value = _reader["CategoryName"].ToString();
		sectionReport.Fields["ProductName"].Value = _reader["ProductName"].ToString();
		sectionReport.Fields["Description"].Value = _reader["Description"].ToString();
		e.EOF = false;
	}
	e.EOF = true;
}</code></pre>

</div>
