Back to Devexpress

PropertyGridControl.Sort Event

wpf-devexpress-dot-xpf-dot-propertygrid-dot-propertygridcontrol-f203acb7.md

latest1.6 KB
Original Source

PropertyGridControl.Sort Event

Enables you to sort data using custom rules.

Namespace : DevExpress.Xpf.PropertyGrid

Assembly : DevExpress.Xpf.PropertyGrid.v25.2.dll

NuGet Package : DevExpress.Wpf.PropertyGrid

Declaration

csharp
public event PropertyGridSortingEventHandler Sort
vb
Public Event Sort As PropertyGridSortingEventHandler

Event Data

The Sort event's data class is DevExpress.Xpf.PropertyGrid.PropertyGridSortingEventArgs.

Remarks

To sort property grid data using custom logic, set its PropertyGridControl.SortMode property to PropertyGridSortMode.Custom, and handle the Sort event.

The event parameter’s Handled property should be set to true if the comparison operation was handled. You can leave this parameter set to false to invoke the default comparison mechanism after your event handler has finished. In this instance, the custom comparison operation’s result is ignored.

See Also

PropertyGridControl Class

PropertyGridControl Members

DevExpress.Xpf.PropertyGrid Namespace