# GrapeCity.ActiveReports.Data.Field.Formula

## Content

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



<h1 id="GrapeCity_ActiveReports_Data_Field_Formula_" data-uid="GrapeCity.ActiveReports.Data.Field.Formula*">Formula Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Data_Field_Formula_" data-uid="GrapeCity.ActiveReports.Data.Field.Formula*"></a>
<h4 id="GrapeCity_ActiveReports_Data_Field_Formula" data-uid="GrapeCity.ActiveReports.Data.Field.Formula">Formula</h4>
<div class="markdown level1 summary"><p>Field Value, used for unbound fields, this can be a formula or a static value
Formaula can be combination of any number of other bound or unbound fields.
eg.</p>
<ol>
<li>Field3.Formula = field1 + field2; (where field1 = Field1.Name and field2 = Field2.Name)</li>
<li>field1.Formula = &quot;&quot;Hello : &quot; + CustomerID&quot;;</li>
<li>field1.Formula = &quot;2 + 4 / 6&quot;</li>
</ol>
<p>Value of Field is based on FieldType which is used to evaluate as the type and the result
is set to Field.Value
Order of Evaluation:
1. Field.Formula,
2. If Field.Formula is null, Field.DefaultValue is used.
3. If Field.DefaultValue is null, Field.Value is used, which may or may not be null.
Field.Value can also be set at run time.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public string Formula { get; set; }</code></pre>
</div>
</div>
