PropertyGridControl.Sort Event

Enables you to sort data using custom rules.

Namespace: DevExpress.Xpf.PropertyGrid

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


public event PropertyGridSortingEventHandler Sort

Event Data

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


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