# C1.Win.FlexGrid.C1FlexGridBase.AllowSorting

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_FlexGrid_C1FlexGridBase_AllowSorting_" data-uid="C1.Win.FlexGrid.C1FlexGridBase.AllowSorting*">AllowSorting Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_FlexGrid_C1FlexGridBase_AllowSorting_" data-uid="C1.Win.FlexGrid.C1FlexGridBase.AllowSorting*"></a>
<h4 id="C1_Win_FlexGrid_C1FlexGridBase_AllowSorting" data-uid="C1.Win.FlexGrid.C1FlexGridBase.AllowSorting">AllowSorting</h4>
<div class="markdown level1 summary"><p>Gets or sets whether the user is allowed to sort columns using the mouse.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public AllowSortingEnum AllowSorting { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Property AllowSorting As AllowSortingEnum</code></pre>
</div>
<h5 id="C1_Win_FlexGrid_C1FlexGridBase_AllowSorting_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>When the grid is used in bound mode, the sorting is performed by the 
<a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.DataSource.html#C1_Win_FlexGrid_C1FlexGridBase_DataSource">DataSource</a> object. If the data source object does not support sorting, 
this property has no effect.</p>
<p>In unbound mode, you can also sort data using the <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.Sort.html#C1_Win_FlexGrid_C1FlexGridBase_Sort_C1_Win_FlexGrid_SortFlags_System_Int32_">Sort(SortFlags, int)</a> method.</p>
<p>The column range sorting was renamed to <a class="xref" href="C1.Win.FlexGrid.AllowSortingEnum.html#C1_Win_FlexGrid_AllowSortingEnum_ColumnRange">ColumnRange</a> for backward compatibility.</p>
<p>The user can clear column sorting with Ctrl+click on its header for all modes except <a class="xref" href="C1.Win.FlexGrid.AllowSortingEnum.html#C1_Win_FlexGrid_AllowSortingEnum_ColumnRange">ColumnRange</a>.</p>
</div>
</div>
