# GrapeCity.Spreadsheet.DataValidationType

## Content

<div class="doc-site-dotnet-api-container">




  <h1 id="GrapeCity_Spreadsheet_DataValidationType" data-uid="GrapeCity.Spreadsheet.DataValidationType" class="text-break">DataValidationType Enum
</h1>
  <div class="markdown level0 summary"><p>Specifies the type of data validation used to validate user input.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.Spreadsheet.html">GrapeCity.Spreadsheet</a></h6>
  <h6><strong>Assembly</strong>: GrapeCity.Spreadsheet.dll</h6>
  <h5 id="GrapeCity_Spreadsheet_DataValidationType_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public enum DataValidationType : byte</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Enum DataValidationType As Byte</code></pre>
  </div>
  <h3 id="fields">Fields
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    <thead>
    </thead></thead><tbody>
      <tr>
        <td id="GrapeCity_Spreadsheet_DataValidationType_Custom">Custom</td>
        <td><p>Data validation which uses a custom formula to check the cell value.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_DataValidationType_Date">Date</td>
        <td><p>Data validation which checks for date values satisfying the given condition.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_DataValidationType_Decimal">Decimal</td>
        <td><p>Data validation which checks for decimal values satisfying the given condition.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_DataValidationType_InputOnly">InputOnly</td>
        <td><p>Only validate when user changes the value.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_DataValidationType_List">List</td>
        <td><p>Data validation which checks for a value matching one of list of values. The maximum length of a list is 255 characters.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_DataValidationType_TextLength">TextLength</td>
        <td><p>Data validation which checks for text values, whose length satisfies the given condition.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_DataValidationType_Time">Time</td>
        <td><p>Data validation which checks for time values satisfying the given condition.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_DataValidationType_WholeNumber">WholeNumber</td>
        <td><p>Data validation which checks for whole number values satisfying the given condition.</p>
</td>
      </tr>
    </tbody>
  </table>
</div>
