# C1.WPF.Grid.FlexGrid.OnSelectionChanging

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_Grid_FlexGrid_OnSelectionChanging_" data-uid="C1.WPF.Grid.FlexGrid.OnSelectionChanging*">OnSelectionChanging Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_Grid_FlexGrid_OnSelectionChanging_" data-uid="C1.WPF.Grid.FlexGrid.OnSelectionChanging*"></a>
<h4 id="C1_WPF_Grid_FlexGrid_OnSelectionChanging_C1_WPF_Grid_GridSelectionEventArgs_" data-uid="C1.WPF.Grid.FlexGrid.OnSelectionChanging(C1.WPF.Grid.GridSelectionEventArgs)">OnSelectionChanging(GridSelectionEventArgs)</h4>
<div class="markdown level1 summary"><p>Raises the <span class="xref">SelectionChanging</span> event.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected void OnSelectionChanging(GridSelectionEventArgs e)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Sub OnSelectionChanging(e As GridSelectionEventArgs)</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="C1.WPF.Grid.GridSelectionEventArgs.html">GridSelectionEventArgs</a></td>
      <td><span class="parametername">e</span></td>
      <td><p>The <a class="xref" href="C1.WPF.Grid.GridSelectionEventArgs.html">GridSelectionEventArgs</a> instance containing the event data.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_WPF_Grid_FlexGrid_OnSelectionChanging_" data-uid="C1.WPF.Grid.FlexGrid.OnSelectionChanging*"></a>
<h4 id="C1_WPF_Grid_FlexGrid_OnSelectionChanging_C1_WPF_Grid_GridControlSelectionEventArgs_" data-uid="C1.WPF.Grid.FlexGrid.OnSelectionChanging(C1.WPF.Grid.GridControlSelectionEventArgs)">OnSelectionChanging(GridControlSelectionEventArgs)</h4>
<div class="markdown level1 summary"><p>Called before the selection changed.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected override sealed void OnSelectionChanging(GridControlSelectionEventArgs e)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected NotOverridable Overrides Sub OnSelectionChanging(e As GridControlSelectionEventArgs)</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="../C1.WPF.GridControl/C1.WPF.Grid.GridControlSelectionEventArgs.html">GridControlSelectionEventArgs</a></td>
      <td><span class="parametername">e</span></td>
      <td><p><a class="xref" href="../C1.WPF.GridControl/C1.WPF.Grid.GridControlRangeEventArgs.html">GridControlRangeEventArgs</a> that contains the event data.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="overrides">Overrides</h5>
<div><a class="xref" href="../C1.WPF.GridControl/C1.WPF.Grid.C1GridControl.OnSelectionChanging.html#C1_WPF_Grid_C1GridControl_OnSelectionChanging_C1_WPF_Grid_GridControlSelectionEventArgs_">C1GridControl.OnSelectionChanging(GridControlSelectionEventArgs)</a></div>
</div>
