Class SortComparer
Represents the properties to sort the data based on custom logic.
Inheritance
System.Object
SortComparer
Namespace: Syncfusion.UI.Xaml.Data
Assembly: Syncfusion.Data.WinUI.dll
Syntax
public class SortComparer : Object
Constructors
SortComparer()
Initializes a new instance of SortComparer class.
Declaration
public SortComparer()
Properties
Comparer
Gets or sets the comparer, that compares the two cell values and perform sorting based on the custom logic.
Declaration
public IComparer<object> Comparer { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IComparer<System.Object> | The comparer that compares the two cell values and perform sorting based on the custom logic. |
PropertyName
Gets or sets the property of the underlying collection view, for which sorting is to be applied.
Declaration
public string PropertyName { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string that specifies the property of the underlying collection view, for which sorting is to be applied. |