# C1.Win.FlexGrid.SortFlags

## Content

<div class="doc-site-dotnet-api-container">




  <h1 id="C1_Win_FlexGrid_SortFlags" data-uid="C1.Win.FlexGrid.SortFlags" class="text-break">SortFlags Enum
</h1>
  <div class="markdown level0 summary"><p>Specifies how grid columns should be sorted.</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_SortFlags_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[Flags]
public enum SortFlags</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;Flags&gt;
Public Enum SortFlags</code></pre>
  </div>
  <h5 id="C1_Win_FlexGrid_SortFlags_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>This enumeration contains flags that can be combined to customize the sorting process.</p>
</div>
  <h5 id="C1_Win_FlexGrid_SortFlags_examples"><strong>Examples</strong></h5>
  <p>For example, the code below sorts two grid columns ignoring case.</p>
<pre><code class="lang-csharp">// C#
SortFlags order = SortFlags.Ascending | SortFlags.IgnoreCase;
_flex.Sort(order, col1, col2);

' VB
Dim order As SortFlags = SortFlags.Ascending Or SortFlags.IgnoreCase
_flex.Sort(order, col1, col2)</code></pre>

  <h3 id="fields">Fields
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    <thead>
    </thead></thead><tbody>
      <tr>
        <td id="C1_Win_FlexGrid_SortFlags_AsDisplayed">AsDisplayed</td>
        <td><p>Sort using the string representation of the data. In this mode, &quot;100&quot; appears before &quot;2&quot;.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_SortFlags_Ascending">Ascending</td>
        <td><p>Sort in ascending order.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_SortFlags_Descending">Descending</td>
        <td><p>Sort in descending order.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_SortFlags_IgnoreCase">IgnoreCase</td>
        <td><p>Ignore case when sorting strings.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_SortFlags_None">None</td>
        <td><p>Do not sort. This setting is useful for skipping certain columns when sorting column ranges.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_SortFlags_UseColSort">UseColSort</td>
        <td><p>Use the flags stored in the <a class="xref" href="C1.Win.FlexGrid.Column.Sort.html#C1_Win_FlexGrid_Column_Sort">Sort</a> property of individual <a class="xref" href="C1.Win.FlexGrid.Column.html">Column</a> objects.</p>
</td>
      </tr>
    </tbody>
  </table>
</div>
