# C1.Win.FlexGrid.ValidationRule

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_FlexGrid_ValidationRule" data-uid="C1.Win.FlexGrid.ValidationRule" class="text-break">ValidationRule Class
</h1>
  <div class="markdown level0 summary"><p>Serves as the base class for all validations.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><span class="xref">ValidationRule</span></div>
      <div class="level2"><a class="xref" href="C1.Win.FlexGrid.CompareRule.html">CompareRule</a></div>
      <div class="level2"><a class="xref" href="C1.Win.FlexGrid.RangeRule.html">RangeRule</a></div>
      <div class="level2"><a class="xref" href="C1.Win.FlexGrid.RequiredRule.html">RequiredRule</a></div>
      <div class="level2"><a class="xref" href="C1.Win.FlexGrid.StringLengthRule.html">StringLengthRule</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.FlexGrid.html">C1.Win.FlexGrid</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.FlexGrid.10.dll</h6>
  <h5 id="C1_Win_FlexGrid_ValidationRule_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public abstract class ValidationRule</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public MustInherit Class ValidationRule</code></pre>
  </div>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_FlexGrid_ValidationRule_ErrorMessage" data-uid="C1.Win.FlexGrid.ValidationRule.ErrorMessage">
          <a class="xref" href="C1.Win.FlexGrid.ValidationRule.ErrorMessage.html#C1_Win_FlexGrid_ValidationRule_ErrorMessage">ErrorMessage</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets an error message to associate with a validation control if validation fails.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_FlexGrid_ValidationRule_Validate_System_Object_" data-uid="C1.Win.FlexGrid.ValidationRule.Validate(System.Object)">
          <a class="xref" href="C1.Win.FlexGrid.ValidationRule.Validate.html#C1_Win_FlexGrid_ValidationRule_Validate_System_Object_">Validate(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Performs validation checks on a value.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
