SortDescriptor
Represents a descriptor for sorting data.
Definition
Namespace:Telerik.WinControls.Data
Assembly:Telerik.WinControls.dll
Syntax:
public class SortDescriptor : INotifyPropertyChanged, INotifyPropertyChangingEx, ICloneable
Inheritance: objectSortDescriptor
Derived Classes:
Implements:
Constructors
public SortDescriptor()
public SortDescriptor(string propertyName, ListSortDirection direction, SortDescriptorCollection owner)
public SortDescriptor(string propertyName, ListSortDirection direction)
Properties
Gets or sets the direction.
public ListSortDirection Direction { get; set; }
The direction.
Gets or sets the owner.
[Browsable(false)]
public SortDescriptorCollection Owner { get; }
The owner.
Represents the index of the property to be used for sorting in a SortDescriptor.
public int PropertyIndex { get; }
The index of the specified property within the data source.
Gets or sets the name of the property.
public string PropertyName { get; set; }
The name of the property.
Methods
Creates a duplicate of the current SortDescriptor instance.
public virtual object Clone()
A new instance of the SortDescriptor that is a copy of the current instance.
Implements:
Raises the PropertyChanged event
protected virtual void OnPropertyChanged(PropertyChangedEventArgs e)
A PropertyChangedEventArgs instance containing event data.
Raises the PropertyChanged event
protected void OnPropertyChanged(string propertyName)
The name of the property
Raises the event.
protected virtual void OnPropertyChanging(PropertyChangingEventArgsEx e)
The PropertyChangingEventArgs instance containing the event data.
Raises the event.
Events
public event PropertyChangedEventHandler PropertyChanged
Implements:
Occurs when a property value is changing.
public event PropertyChangingEventHandlerEx PropertyChanging
Implements: