Syncfusion.SfGrid.WPF


SortColumnsChanging Event (SfDataGrid)

Occurs when the column is being sorted in SfDataGrid .
Syntax
'Declaration
 
Public Event SortColumnsChanging As GridSortColumnsChangingEventHandler
'Usage
 
Dim instance As SfDataGrid
Dim handler As GridSortColumnsChangingEventHandler
 
AddHandler instance.SortColumnsChanging, handler
public event GridSortColumnsChangingEventHandler SortColumnsChanging
Event Data

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

PropertyDescription
Gets the corresponding collection changed actions performed during sorting operation.  
Gets the list of SortColumnDescription that are being sorted in view.  
(Inherited from System.ComponentModel.CancelEventArgs)
Gets or sets a value indicating whether the SfDataGrid should scroll to CurrentItem after sorting.  
The original reporting source that raised the event. (Inherited from Syncfusion.UI.Xaml.Grid.GridCancelEventArgs)
Gets the list of SortColumnDescription that are being unsorted in view.  
Remarks
You can cancel or customize the column being sorted using the GridSortColumnsChangingEventArgs event argument. It will be raised for UI based sorting only.
AssemblyVersion

Syncfusion.SfGrid.WPF: 17.1460.0.47

See Also