# GrapeCity.Wpf.SpreadSheet.Dialogs.BuiltInDialogs.DataValidation

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Wpf_SpreadSheet_Dialogs_BuiltInDialogs_DataValidation_" data-uid="GrapeCity.Wpf.SpreadSheet.Dialogs.BuiltInDialogs.DataValidation*">DataValidation Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Wpf_SpreadSheet_Dialogs_BuiltInDialogs_DataValidation_" data-uid="GrapeCity.Wpf.SpreadSheet.Dialogs.BuiltInDialogs.DataValidation*"></a>
<h4 id="GrapeCity_Wpf_SpreadSheet_Dialogs_BuiltInDialogs_DataValidation_GrapeCity_Wpf_SpreadSheet_GcSpreadSheet_System_Boolean_" data-uid="GrapeCity.Wpf.SpreadSheet.Dialogs.BuiltInDialogs.DataValidation(GrapeCity.Wpf.SpreadSheet.GcSpreadSheet,System.Boolean)">DataValidation(GcSpreadSheet, bool)</h4>
<div class="markdown level1 summary"><p>Gets the data validation dialog that limits the type of data that can be entered in a cell.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static IDialog DataValidation(GcSpreadSheet spread, bool applyAll)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function DataValidation(spread As GcSpreadSheet, applyAll As Boolean) As IDialog</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.Wpf.SpreadSheet.GcSpreadSheet.html">GcSpreadSheet</a></td>
      <td><span class="parametername">spread</span></td>
      <td><p>The <a class="xref" href="GrapeCity.Wpf.SpreadSheet.GcSpreadSheet.html">GcSpreadSheet</a> control to work with.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">applyAll</span></td>
      <td><p><code>true</code> to apply changes to all other cells with the same settings; <code>false</code> to change the selected cells only.</p>
</td>
    </tr>
  </tbody>
</table>
<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="GrapeCity.Wpf.SpreadSheet.Dialogs.IDialog.html">IDialog</a></td>
      <td><p>The <a class="xref" href="GrapeCity.Wpf.SpreadSheet.Dialogs.IDialog.html">IDialog</a> object represents the format cells dialog.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
