Class SortDescriptor
Represents a struct that contains the sorting information like property name to be sorted and sort direction based on which sorting for a property is processed.
Inheritance
System.Object
SortDescriptor
Implements
System.ComponentModel.INotifyPropertyChanged
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.DataSource
Assembly: Syncfusion.DataSource.WinForms.dll
Syntax
public class SortDescriptor : INotifyPropertyChanged
Constructors
SortDescriptor()
Initializes a new instance of the SortDescriptor class.
Declaration
public SortDescriptor()
SortDescriptor(String)
Initializes a new instance of the SortDescriptor class.
Declaration
public SortDescriptor(string propertyName)
Parameters
Type | Name | Description |
---|---|---|
System.String | propertyName | Property name |
SortDescriptor(String, ListSortDirection)
Initializes a new instance of the SortDescriptor class.
Declaration
public SortDescriptor(string propertyName, ListSortDirection direction)
Parameters
Type | Name | Description |
---|---|---|
System.String | propertyName | Property name |
ListSortDirection | direction | The sort direction |
Properties
Comparer
Gets or sets the Comparer.
Declaration
public IComparer<object> Comparer { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IComparer<System.Object> | IComparer of object. |
Direction
Gets or sets the Sorting Direction
Declaration
public ListSortDirection Direction { get; set; }
Property Value
Type | Description |
---|---|
ListSortDirection | The List Sort Direction. |
PropertyName
Gets or sets the Property Name
Declaration
public string PropertyName { get; set; }
Property Value
Type | Description |
---|---|
System.String | Represents the string value. |
Events
PropertyChanged
Occurs when the property is changed for the data objects on the collection.
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type |
---|
System.ComponentModel.PropertyChangedEventHandler |
Implements
System.ComponentModel.INotifyPropertyChanged