title: Delphi. How to Disable/Enable controls without triggering controls events
body: <p>I have a DataSet (<code>TZQuery</code>), which has several boolean fields, that have TDBCheckBoxes assigned to them.</p>
  
  <p>These CheckBoxes have "<code>OnClick</code>" events assigned to them and they are triggered whenever I change field values (which are assigned to checkboxes).</p>
  
  <p>The problem is that I do not need these events triggerred, during many operations i do with the dataset.</p>
  
  <p>I've tried calling <code>DataSet.DisableControls</code>, but then events are called right after i call <code>DataSet.EnableControls</code>.</p>
  
  <p>So my question is - is there a way to disable triggering Data-aware controls events.</p>
  
  <p>Edit (bigger picture):</p>
  
  <p>If an exception happens while let's say saving data, i have to load the default values (or the values i've had before saving it). Now while loading that data, all these events (TDBCheckBoxes and other data-aware controls) are triggered, which do all sorts of operations which create lag and sometimes even unwanted changes of data, i'm looking for an universal solution of disabling them all for a short period of time.</p>