ClassSortDescriptor
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
SortDescriptor()
Declaration
public SortDescriptor()
SortDescriptor(string, ListSortDirection)
Declaration
public SortDescriptor(string propertyName, ListSortDirection direction)
Parameters
propertyName
direction
SortDescriptor(string, ListSortDirection, SortDescriptorCollection)
Declaration
public SortDescriptor(string propertyName, ListSortDirection direction, SortDescriptorCollection owner)
Parameters
propertyName
direction
owner
Properties
Direction
Gets or sets the direction.
Declaration
public ListSortDirection Direction { get; set; }
Property Value
The direction.
Owner
Gets or sets the owner.
Declaration
[Browsable(false)]
public SortDescriptorCollection Owner { get; }
Property Value
The owner.
PropertyIndex
Represents the index of the property to be used for sorting in a SortDescriptor.
Declaration
public int PropertyIndex { get; }
Property Value
The index of the specified property within the data source.
PropertyName
Gets or sets the name of the property.
Declaration
public string PropertyName { get; set; }
Property Value
The name of the property.
Methods
Clone()
Creates a duplicate of the current SortDescriptor instance.
Declaration
public virtual object Clone()
Returns
A new instance of the SortDescriptor that is a copy of the current instance.
Implements
OnPropertyChanged(PropertyChangedEventArgs)
Raises the PropertyChanged event
Declaration
protected virtual void OnPropertyChanged(PropertyChangedEventArgs e)
Parameters
e
A PropertyChangedEventArgs instance containing event data.
OnPropertyChanged(string)
Raises the PropertyChanged event
Declaration
protected void OnPropertyChanged(string propertyName)
Parameters
propertyName
The name of the property
OnPropertyChanging(PropertyChangingEventArgsEx)
Raises the event.
Declaration
protected virtual void OnPropertyChanging(PropertyChangingEventArgsEx e)
Parameters
e
The PropertyChangingEventArgs instance containing the event data.
OnPropertyChanging(string, object, object)
Raises the event.
Declaration
protected virtual bool OnPropertyChanging(string propertyName, object oldValue, object newValue)
Parameters
propertyName
Name of the property.
oldValue
The old value.
newValue
The new value.
Returns
Returns [TRUE] If the events is not canceled, otherwise [FALSE].
Events
PropertyChanged
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Value
Implements
PropertyChanging
Occurs when a property value is changing.
Declaration
public event PropertyChangingEventHandlerEx PropertyChanging
Event Value
Implements