title: DataBinding: Validate before change
body: <p>[.NET 2]</p>
  
  <p><strong>Situation:</strong></p>
  
  <pre><code>    class MyObject 
      {
          string Max { get{...}; set{...}; }
          string Min { get{...}; set{...}; }
      }
  
      MyObject myObj1 = new MyObject();
      // ... code
      txtMin.DataBindings.Add("Text", myObj1, "Min");
      txtMax.DataBindings.Add("Text", myObj1, "Max");
  </code></pre>
  
  <p><strong>Problem:</strong></p>
  
  <p>Need verifying <code>Min &lt; Max</code> before changing the property in <em>MyObject</em>. </p>
  
  <p>If OK, change, if NOK, leave as is(maybe a message to the user).</p>
  
  <p>(sorry if duplicate)</p>