Gets or sets property sorting order. This is a dependency property.

Namespace:  Mindscape.WpfElements
Assembly:  Mindscape.WpfElements (in Mindscape.WpfElements.dll)
Version: 3.0.0.0 (3.0.0.0)

Syntax

C#
public IComparer Sorting { get; set; }
Visual Basic (Declaration)
Public Property Sorting As IComparer

Remarks

If both the BindingView.DefaultView.CustomSort property and the PropertyGrid.Sorting property are set, the last one to be set takes precedence. If BindingView.DefaultView.CustomSort is modified after PropertyGrid.Sorting has been set, PropertyGrid.Sorting continues to reflect its previous value (even though this value is ignored). Additionally, setting PropertyGrid.Sorting clears any previously set BindingView.DefaultView.SortDescriptions value.

Changing this setting while the grid is displayed collapses any expanded properties.

The PropertySorting class provides implementations of common sorting strategies.

Dependency Property Information
Identifier field SortingProperty
Metadata properties set to true None

See Also