# C1.Win.FlexGrid.C1FlexGridBase.RowValidating

## Content

<div class="doc-site-dotnet-api-container">




<h1 id="C1_Win_FlexGrid_C1FlexGridBase_RowValidating" data-uid="C1.Win.FlexGrid.C1FlexGridBase.RowValidating" class="text-break">RowValidating Event
</h1>
<div class="markdown level0 summary"><p>Fires when a row is losing focus and needs to be validated.</p>
</div>
<div class="markdown level0 conceptual"></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_C1FlexGridBase_RowValidating_syntax">Syntax</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public event RowColEventHandler RowValidating</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Event RowValidating As RowColEventHandler</code></pre>
</div>
<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="C1.Win.FlexGrid.RowColEventHandler.html">RowColEventHandler</a></td>
      <td>Fires when a row is losing focus and needs to be validated.</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_FlexGrid_C1FlexGridBase_RowValidating_remarks"><strong>Remarks</strong></h5>
<div class="markdown level0 remarks"><p>This event is analogous to the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.control.validating">Validating</a> event.</p>
<p>Use this event to perform validation on all the values of a row.
If the row does not pass validation, set the <a class="xref" href="C1.Win.FlexGrid.RowColEventArgs.Cancel.html#C1_Win_FlexGrid_RowColEventArgs_Cancel">Cancel</a> property to true.</p>
<p>Canceling this event prevents the <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.RowValidated.html">RowValidated</a> event from occurring, 
and also prevents the user from leaving the invalid row.</p>
</div>
</div>
