# C1.Win.FlexGrid.C1FlexGridBase.BeforeRowColChange

## Content

<div class="doc-site-dotnet-api-container">




<h1 id="C1_Win_FlexGrid_C1FlexGridBase_BeforeRowColChange" data-uid="C1.Win.FlexGrid.C1FlexGridBase.BeforeRowColChange" class="text-break">BeforeRowColChange Event
</h1>
<div class="markdown level0 summary"><p>Fires before the current cell changes (<a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.Row.html#C1_Win_FlexGrid_C1FlexGridBase_Row">Row</a> and <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.Col.html#C1_Win_FlexGrid_C1FlexGridBase_Col">Col</a> properties).</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_BeforeRowColChange_syntax">Syntax</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public event RangeEventHandler BeforeRowColChange</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Event BeforeRowColChange As RangeEventHandler</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.RangeEventHandler.html">RangeEventHandler</a></td>
      <td>Fires before the current cell changes ( and  properties).</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_FlexGrid_C1FlexGridBase_BeforeRowColChange_remarks"><strong>Remarks</strong></h5>
<div class="markdown level0 remarks"><p>This event fires before the <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.Row.html#C1_Win_FlexGrid_C1FlexGridBase_Row">Row</a> or <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.Col.html#C1_Win_FlexGrid_C1FlexGridBase_Col">Col</a> properties change, either as a 
result of user actions or through code. It allows you to prevent the selection of certain cells, 
thus creating "protected" ranges on a grid.</p>
<p><a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.BeforeRowColChange.html">BeforeRowColChange</a> fires only when the <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.Row.html#C1_Win_FlexGrid_C1FlexGridBase_Row">Row</a> or <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.Col.html#C1_Win_FlexGrid_C1FlexGridBase_Col">Col</a> 
properties are about to change. To detect extended selections, you also need to handle the 
<a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.BeforeSelChange.html">BeforeSelChange</a> event.</p>
</div>
</div>
