# GrapeCity.Spreadsheet.ExternalVariable.OnDirtied

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Spreadsheet_ExternalVariable_OnDirtied_" data-uid="GrapeCity.Spreadsheet.ExternalVariable.OnDirtied*">OnDirtied Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Spreadsheet_ExternalVariable_OnDirtied_" data-uid="GrapeCity.Spreadsheet.ExternalVariable.OnDirtied*"></a>
<h4 id="GrapeCity_Spreadsheet_ExternalVariable_OnDirtied" data-uid="GrapeCity.Spreadsheet.ExternalVariable.OnDirtied">OnDirtied()</h4>
<div class="markdown level1 summary"><p>Designates this external variable to be recalculated when the next recalculation occurs.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected virtual void OnDirtied()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Overridable Sub OnDirtied()</code></pre>
</div>
<h5 id="GrapeCity_Spreadsheet_ExternalVariable_OnDirtied_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>Accessing calculation engine (like get value of external variable) is available inside this function.</p>
</div>
</div>
