# GrapeCity.ActiveReports.SectionReport.CalculatedFields

## Content

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



<h1 id="GrapeCity_ActiveReports_SectionReport_CalculatedFields_" data-uid="GrapeCity.ActiveReports.SectionReport.CalculatedFields*">CalculatedFields Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_SectionReport_CalculatedFields_" data-uid="GrapeCity.ActiveReports.SectionReport.CalculatedFields*"></a>
<h4 id="GrapeCity_ActiveReports_SectionReport_CalculatedFields" data-uid="GrapeCity.ActiveReports.SectionReport.CalculatedFields">CalculatedFields</h4>
<div class="markdown level1 summary"><p>Gets a value representing the collection of fields whose values are evaluated during report execution.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">[Browsable(false)]
public FieldCollection CalculatedFields { get; }</code></pre>
</div>
<h5 class="propertyValue">Property Value</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.Data.FieldCollection.html">FieldCollection</a></td>
      <td><p>A <a class="xref" href="GrapeCity.ActiveReports.Data.FieldCollection.html">FieldCollection</a> value, with calculated fields.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_ActiveReports_SectionReport_CalculatedFields_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p><a class="xref" href="GrapeCity.ActiveReports.SectionReport.html">SectionReport</a> can calculate simple arithmetic formulas.</p>
</div>
<h5 id="GrapeCity_ActiveReports_SectionReport_CalculatedFields_examples">Examples</h5>
<pre><code class="lang-csharp">var sectionReport = new GrapeCity.ActiveReports.SectionReport();
sectionReport.LoadLayout(reportFilePath);
sectionReport.Document.Printer.PrinterName = String.Empty;
var calculated = new GrapeCity.ActiveReports.Data.Field();
calculated.DefaultValue = null;
calculated.FieldType = FieldTypeEnum.None;
calculated.Formula = "=number*2";
calculated.Name = "DoubleNumber";
calculated.Tag = null;
sectionReport.CalculatedFields.Add(calculated);</code></pre>

</div>
