# C1.Win.FlexGrid.SortableBindingList-1

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_FlexGrid_SortableBindingList_1" data-uid="C1.Win.FlexGrid.SortableBindingList`1" class="text-break">SortableBindingList&lt;T&gt; Class
</h1>
  <div class="markdown level0 summary"><p>Generic collection that supports data binding and advanced sorting
(<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.ibindinglistview">IBindingListView</a>).</p>
<p>
This class is especially useful to provide data for grids that use
the <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.GroupDescriptions.html#C1_Win_FlexGrid_C1FlexGridBase_GroupDescriptions">GroupDescriptions</a> property.
</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.objectmodel.collection-1">Collection</a>&lt;T&gt;</div>
    <div class="level2"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.bindinglist-1">BindingList</a>&lt;T&gt;</div>
    <div class="level3"><span class="xref">SortableBindingList&lt;T&gt;</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1">IList</a>&lt;T&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.icollection-1">ICollection</a>&lt;T&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlylist-1">IReadOnlyList</a>&lt;T&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlycollection-1">IReadOnlyCollection</a>&lt;T&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;T&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.icanceladdnew">ICancelAddNew</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.iraiseitemchangedevents">IRaiseItemChangedEvents</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.ibindinglistview">IBindingListView</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.ibindinglist">IBindingList</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.ilist">IList</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.icollection">ICollection</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.ienumerable">IEnumerable</a></div>
  </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_SortableBindingList_1_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class SortableBindingList&lt;T&gt; : BindingList&lt;T&gt;, IList&lt;T&gt;, ICollection&lt;T&gt;, IReadOnlyList&lt;T&gt;, IReadOnlyCollection&lt;T&gt;, IEnumerable&lt;T&gt;, ICancelAddNew, IRaiseItemChangedEvents, IBindingListView, IBindingList, IList, ICollection, IEnumerable where T : class</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class SortableBindingList(Of T As Class)
    Inherits BindingList(Of T)
    Implements IList(Of T), ICollection(Of T), IReadOnlyList(Of T), IReadOnlyCollection(Of T), IEnumerable(Of T), ICancelAddNew, IRaiseItemChangedEvents, IBindingListView, IBindingList, IList, ICollection, IEnumerable</code></pre>
  </div>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">T</span></td>
        <td><p>The type of elements in the list.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_FlexGrid_SortableBindingList_1__ctor" data-uid="C1.Win.FlexGrid.SortableBindingList`1.#ctor">
          <a class="xref" href="C1.Win.FlexGrid.SortableBindingList-1.-ctor.html#C1_Win_FlexGrid_SortableBindingList_1__ctor">SortableBindingList()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Win.FlexGrid.SortableBindingList-1.html">SortableBindingList&lt;T&gt;</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_SortableBindingList_1__ctor_System_Collections_Generic_IList__0__" data-uid="C1.Win.FlexGrid.SortableBindingList`1.#ctor(System.Collections.Generic.IList{`0})">
          <a class="xref" href="C1.Win.FlexGrid.SortableBindingList-1.-ctor.html#C1_Win_FlexGrid_SortableBindingList_1__ctor_System_Collections_Generic_IList__0__">SortableBindingList(IList&lt;T&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Win.FlexGrid.SortableBindingList-1.html">SortableBindingList&lt;T&gt;</a> class.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_FlexGrid_SortableBindingList_1_IsSortedCore" data-uid="C1.Win.FlexGrid.SortableBindingList`1.IsSortedCore">
          <a class="xref" href="C1.Win.FlexGrid.SortableBindingList-1.IsSortedCore.html#C1_Win_FlexGrid_SortableBindingList_1_IsSortedCore">IsSortedCore</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value that indicates whether the list is sorted.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_SortableBindingList_1_SortDescriptions" data-uid="C1.Win.FlexGrid.SortableBindingList`1.SortDescriptions">
          <a class="xref" href="C1.Win.FlexGrid.SortableBindingList-1.SortDescriptions.html#C1_Win_FlexGrid_SortableBindingList_1_SortDescriptions">SortDescriptions</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the collection of sort descriptions currently applied to the data source.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_SortableBindingList_1_SortDirectionCore" data-uid="C1.Win.FlexGrid.SortableBindingList`1.SortDirectionCore">
          <a class="xref" href="C1.Win.FlexGrid.SortableBindingList-1.SortDirectionCore.html#C1_Win_FlexGrid_SortableBindingList_1_SortDirectionCore">SortDirectionCore</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the direction in which the list is sorted.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_SortableBindingList_1_SortPropertyCore" data-uid="C1.Win.FlexGrid.SortableBindingList`1.SortPropertyCore">
          <a class="xref" href="C1.Win.FlexGrid.SortableBindingList-1.SortPropertyCore.html#C1_Win_FlexGrid_SortableBindingList_1_SortPropertyCore">SortPropertyCore</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the first property descriptor used for sorting the list.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_SortableBindingList_1_SupportsAdvancedSorting" data-uid="C1.Win.FlexGrid.SortableBindingList`1.SupportsAdvancedSorting">
          <a class="xref" href="C1.Win.FlexGrid.SortableBindingList-1.SupportsAdvancedSorting.html#C1_Win_FlexGrid_SortableBindingList_1_SupportsAdvancedSorting">SupportsAdvancedSorting</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value that indicates whether the data source supports advanced sorting.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_SortableBindingList_1_SupportsSortingCore" data-uid="C1.Win.FlexGrid.SortableBindingList`1.SupportsSortingCore">
          <a class="xref" href="C1.Win.FlexGrid.SortableBindingList-1.SupportsSortingCore.html#C1_Win_FlexGrid_SortableBindingList_1_SupportsSortingCore">SupportsSortingCore</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value that indicates whether the list supports sorting.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_FlexGrid_SortableBindingList_1_ApplySort_System_ComponentModel_ListSortDescriptionCollection_" data-uid="C1.Win.FlexGrid.SortableBindingList`1.ApplySort(System.ComponentModel.ListSortDescriptionCollection)">
          <a class="xref" href="C1.Win.FlexGrid.SortableBindingList-1.ApplySort.html#C1_Win_FlexGrid_SortableBindingList_1_ApplySort_System_ComponentModel_ListSortDescriptionCollection_">ApplySort(ListSortDescriptionCollection)</a>
        </td>
        <td class="markdown level1 summary"><p>Sorts the data source based on the given <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.listsortdescriptioncollection">ListSortDescriptionCollection</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_SortableBindingList_1_ApplySortCore_System_ComponentModel_PropertyDescriptor_System_ComponentModel_ListSortDirection_" data-uid="C1.Win.FlexGrid.SortableBindingList`1.ApplySortCore(System.ComponentModel.PropertyDescriptor,System.ComponentModel.ListSortDirection)">
          <a class="xref" href="C1.Win.FlexGrid.SortableBindingList-1.ApplySortCore.html#C1_Win_FlexGrid_SortableBindingList_1_ApplySortCore_System_ComponentModel_PropertyDescriptor_System_ComponentModel_ListSortDirection_">ApplySortCore(PropertyDescriptor, ListSortDirection)</a>
        </td>
        <td class="markdown level1 summary"><p>Sorts the items on the list based on a single property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_SortableBindingList_1_RemoveSortCore" data-uid="C1.Win.FlexGrid.SortableBindingList`1.RemoveSortCore">
          <a class="xref" href="C1.Win.FlexGrid.SortableBindingList-1.RemoveSortCore.html#C1_Win_FlexGrid_SortableBindingList_1_RemoveSortCore">RemoveSortCore()</a>
        </td>
        <td class="markdown level1 summary"><p>Removes any sorts currently applied to the list.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
