# C1.Win.TrueDBGrid.BaseGrid.Frame.AllowSort

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_TrueDBGrid_BaseGrid_Frame_AllowSort_" data-uid="C1.Win.TrueDBGrid.BaseGrid.Frame.AllowSort*">AllowSort Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_TrueDBGrid_BaseGrid_Frame_AllowSort_" data-uid="C1.Win.TrueDBGrid.BaseGrid.Frame.AllowSort*"></a>
<h4 id="C1_Win_TrueDBGrid_BaseGrid_Frame_AllowSort" data-uid="C1.Win.TrueDBGrid.BaseGrid.Frame.AllowSort">AllowSort</h4>
<div class="markdown level1 summary"><p>Gets or sets a value indicating the ability of the grid to automatically sort data when a column header is clicked.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">[Layout]
public bool AllowSort { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">&lt;Layout&gt;
Public Property AllowSort As Boolean</code></pre>
</div>
<h5 id="C1_Win_TrueDBGrid_BaseGrid_Frame_AllowSort_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>If True, and if the <a class="xref" href="C1.Win.TrueDBGrid.C1TrueDBGrid.DataView.html#C1_Win_TrueDBGrid_C1TrueDBGrid_DataView">DataView</a> property is set to GroupBy, the grid will automatically filter column data upon grouping action.</p>
<p>If False, the grid will fire the <a class="xref" href="C1.Win.TrueDBGrid.C1TrueDBGrid.Sort.html">Sort</a> event.</p>
<p>If the <a class="xref" href="C1.Win.TrueDBGrid.C1TrueDBGrid.DataView.html#C1_Win_TrueDBGrid_C1TrueDBGrid_DataView">DataView</a> property is set to Group By and the user attempts to drag a column header into the grouping area, the grid will automatically sort the column data.</p>
<p>If False, the <a class="xref" href="C1.Win.TrueDBGrid.C1TrueDBGrid.Sort.html">Sort</a> event allows the application to sort the data.</p>
</div>
</div>
