Skip to main content
A newer version of this page is available. .

PropertyGridControl.Sort Event

Enables you to sort data using custom rules.

Namespace: DevExpress.Xpf.PropertyGrid

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

Declaration

public event PropertyGridSortingEventHandler Sort

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.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Sort event.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also