Xceed DataGrid for WPF v7.2 Documentation
SortDirectionChanging Event


Xceed.Wpf.DataGrid Assembly > Xceed.Wpf.DataGrid Namespace > DataGridControl Class : SortDirectionChanging Event
Raised when the sort direction of a column is about to change and allows the sort direction defined in a column's SortDirectionCycle collection to be overridden.
Syntax
'Declaration
 
Public Event SortDirectionChanging As ColumnSortDirectionChangingEventHandler
'Usage
 
Dim instance As DataGridControl
Dim handler As ColumnSortDirectionChangingEventHandler
 
AddHandler instance.SortDirectionChanging, handler
public event ColumnSortDirectionChangingEventHandler SortDirectionChanging
Event Data

The event handler receives an argument of type ColumnSortDirectionChangingEventArgs containing data related to this event. The following ColumnSortDirectionChangingEventArgs properties provide information specific to this event.

PropertyDescription
The Column whose sort direction is about to change.  
The current sort direction.  
The associated DataGridContext.  
(Inherited from System.Windows.RoutedEventArgs)
The upcoming sort diection.  
(Inherited from )
(Inherited from )
(Inherited from )
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