# C1.Win.Data.Entities.C1DataSource.SavingChanges

## Content

<div class="doc-site-dotnet-api-container">




<h1 id="C1_Win_Data_Entities_C1DataSource_SavingChanges" data-uid="C1.Win.Data.Entities.C1DataSource.SavingChanges" class="text-break">SavingChanges Event
</h1>
<div class="markdown level0 summary"><p>Occurs before changes are saved.</p>
</div>
<div class="markdown level0 conceptual"></div>
<h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.Data.Entities.html">C1.Win.Data.Entities</a></h6>
<h6><strong>Assembly</strong>: C1.Win.Data.Entity.4.8.dll</h6>
<h5 id="C1_Win_Data_Entities_C1DataSource_SavingChanges_syntax">Syntax</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public event EventHandler&lt;CancelEventArgs&gt; SavingChanges</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Event SavingChanges As EventHandler(Of CancelEventArgs)</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-1">EventHandler</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.canceleventargs">CancelEventArgs</a>&gt;</td>
      <td>Occurs before changes are saved.</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_Data_Entities_C1DataSource_SavingChanges_remarks"><strong>Remarks</strong></h5>
<div class="markdown level0 remarks"><p>This event is raised from the <a class="xref" href="C1.Win.Data.Entities.C1DataSource.SaveChanges.html#C1_Win_Data_Entities_C1DataSource_SaveChanges">SaveChanges()</a> method and allows a handler to cancel the operation
before it begins. When a handler sets <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.canceleventargs.cancel">Cancel</a> to
True, the operation will be aborted and a subsequent SavedChanges event
will not be raised.</p>
</div>
</div>
