# GrapeCity.ActiveReports.Design.UndoManager.Changed

## Content

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




<h1 id="GrapeCity_ActiveReports_Design_UndoManager_Changed" data-uid="GrapeCity.ActiveReports.Design.UndoManager.Changed" class="text-break">Changed Event
</h1>
<div class="markdown level0 summary"><p>Occurs when a change is made to the undo or redo stack, indicating that the state of the report has changed.</p>
</div>
<div class="markdown level0 conceptual"></div>
<h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.ActiveReports.Design.html">GrapeCity.ActiveReports.Design</a></h6>
<h6><strong>Assembly</strong>: MESCIUS.ActiveReports.Design.Win.dll</h6>
<h5 id="GrapeCity_ActiveReports_Design_UndoManager_Changed_syntax">Syntax</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public event EventHandler Changed</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 when a change is made to the undo or redo stack, indicating that the state of the report has changed.</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_ActiveReports_Design_UndoManager_Changed_remarks"><strong>Remarks</strong></h5>
<div class="markdown level0 remarks"><p>This event is raised after an undo or redo operation is performed, as well as after the undo/redo history is cleared.
It can be used to update UI elements or perform other actions in response to changes in the report's state.</p>
</div>
<h5 id="GrapeCity_ActiveReports_Design_UndoManager_Changed_examples"><strong>Examples</strong></h5>
<p>This example demonstrates how to dynamically update the enabled state of Undo and Redo buttons based on the current state of the UndoManager.</p>
<pre><code class="lang-csharp">designer.UndoManager.Changed += (sender, e) =&gt; {
    _undoButton.Enabled = _designer.UndoManager.UndoCount &gt; 0;
    _redoButton.Enabled = _designer.UndoManager.RedoCount &gt; 0;
};</code></pre>

</div>
