Xceed DataGrid for WPF v7.2 Documentation
SortDirectionCycleCollection Class
Members  Example 


Xceed.Wpf.DataGrid Assembly > Xceed.Wpf.DataGrid Namespace : SortDirectionCycleCollection Class
Class the representings the sort directions through which a column will cycle when its associated column-manager cell or group-by item is pressed.
Object Model
SortDirectionCycleCollection ClassSortDirection Enumeration
Syntax
'Declaration
 
<DefaultMemberAttribute("Item")>
<DebuggerTypeProxyAttribute(System.Collections.Generic.Mscorlib_CollectionDebugView`1)>
<DebuggerDisplayAttribute("Count = {Count}")>
Public Class SortDirectionCycleCollection 
   Inherits System.Collections.ObjectModel.Collection(Of SortDirection)
'Usage
 
Dim instance As SortDirectionCycleCollection
[DefaultMember("Item")]
[DebuggerTypeProxy(System.Collections.Generic.Mscorlib_CollectionDebugView`1)]
[DebuggerDisplay("Count = {Count}")]
public class SortDirectionCycleCollection : System.Collections.ObjectModel.Collection<SortDirection> 
Remarks
Duplicate values cannot be added to the collection.
Example
The following example demonstrates how to define a sort-direction cycle collection that will cycle through None, Descending, Ascending, None, Desceding, and so on.This example demonstrates how to define a sort-direction cycle collection that will cycle through None, Descending, Ascending, Desceding, Ascending and so on. Notice that "None" will not be repeated.
<xcdg:Column ...>
  <xcdg:Column.SortDirectionCycle>
    <xcdg:SortDirectionOrderCollection>
      <xcdg:SortDirection>Descending</xcdg:SortDirection>
      <xcdg:SortDirection>Ascending</xcdg:SortDirection>
      <xcdg:SortDirection>None</xcdg:SortDirection>
    </xcdg:SortDirectionOrderCollection>
  </xcdg:Column.SortDirectionCycle >
</xcdg:Column>
<xcdg:Column ...>
  <xcdg:Column.SortDirectionCycle >
    <xcdg:SortDirectionOrderCollection>
      <xcdg:SortDirection>Descending</xcdg:SortDirection>
      <xcdg:SortDirection>Ascending</xcdg:SortDirection>
    </xcdg:SortDirectionOrderCollection>
  </xcdg:Column.SortDirectionCycle >
</xcdg:Column>
Inheritance Hierarchy

System.Object
   System.Collections.ObjectModel.Collection<T>
      Xceed.Wpf.DataGrid.SortDirectionCycleCollection

Requirements

Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

SortDirectionCycleCollection Members
Xceed.Wpf.DataGrid Namespace