# GrapeCity.ActiveReports.SectionReport.DataInitialize

## Content

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




<h1 id="GrapeCity_ActiveReports_SectionReport_DataInitialize" data-uid="GrapeCity.ActiveReports.SectionReport.DataInitialize" class="text-break">DataInitialize Event
</h1>
<div class="markdown level0 summary"><p>Occurs after the <a class="xref" href="GrapeCity.ActiveReports.SectionReport.ReportStart.html">ReportStart</a> event.</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_DataInitialize_syntax">Syntax</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public event EventHandler DataInitialize</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 after the  event.</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_ActiveReports_SectionReport_DataInitialize_remarks"><strong>Remarks</strong></h5>
<div class="markdown level0 remarks"><p>Permit the addition of custom fields to the field collection of the report.</p>
</div>
<h5 id="GrapeCity_ActiveReports_SectionReport_DataInitialize_examples"><strong>Examples</strong></h5>
<pre><code class="lang-csharp">var sectionReport = new GrapeCity.ActiveReports.SectionReport();
sectionReport.Document.Printer.PrinterName = String.Empty;
var field = new GrapeCity.ActiveReports.Data.Field();
field.Name = "CategoryName";
sectionReport.DataInitialize += (sender, e) =&gt;  
	sectionReport.Fields.Add(field);</code></pre>

</div>
