skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • AI Coding Assistants
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class SortDescriptor

Represents a descriptor for sorting data.

Inheritance
System.Object
SortDescriptor
GridSortField
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Telerik.WinControls.Data
Assembly: Telerik.WinControls.dll

Syntax

public class SortDescriptor : INotifyPropertyChanged, INotifyPropertyChangingEx, ICloneable

Constructors

SortDescriptor()

Declaration
public SortDescriptor()

SortDescriptor(String, ListSortDirection)

Declaration
public SortDescriptor(string propertyName, ListSortDirection direction)
Parameters
System.String propertyName

System.ComponentModel.ListSortDirection direction

SortDescriptor(String, ListSortDirection, SortDescriptorCollection)

Declaration
public SortDescriptor(string propertyName, ListSortDirection direction, SortDescriptorCollection owner)
Parameters
System.String propertyName

System.ComponentModel.ListSortDirection direction

SortDescriptorCollection owner

Properties

Direction

Gets or sets the direction.

Declaration
public ListSortDirection Direction { get; set; }
Property Value
System.ComponentModel.ListSortDirection

The direction.

Owner

Gets or sets the owner.

Declaration
public SortDescriptorCollection Owner { get; }
Property Value
SortDescriptorCollection

The owner.

PropertyIndex

Represents the index of the property to be used for sorting in a SortDescriptor.

Declaration
public int PropertyIndex { get; }
Property Value
System.Int32

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
System.String

The name of the property.

Methods

Clone()

Creates a duplicate of the current SortDescriptor instance.

Declaration
public virtual object Clone()
Returns
System.Object

A new instance of the SortDescriptor that is a copy of the current instance.

Implements
System.ICloneable.Clone()

OnPropertyChanged(PropertyChangedEventArgs)

Raises the PropertyChanged event

Declaration
protected virtual void OnPropertyChanged(PropertyChangedEventArgs e)
Parameters
System.ComponentModel.PropertyChangedEventArgs e

A System.ComponentModel.PropertyChangedEventArgs instance containing event data.

OnPropertyChanged(String)

Raises the PropertyChanged event

Declaration
protected void OnPropertyChanged(string propertyName)
Parameters
System.String propertyName

The name of the property

OnPropertyChanging(String, Object, Object)

Raises the PropertyChanging event.

Declaration
protected virtual bool OnPropertyChanging(string propertyName, object oldValue, object newValue)
Parameters
System.String propertyName

Name of the property.

System.Object oldValue

The old value.

System.Object newValue

The new value.

Returns
System.Boolean

Returns [TRUE] If the events is not canceled, otherwise [FALSE].

OnPropertyChanging(PropertyChangingEventArgsEx)

Raises the PropertyChanging event.

Declaration
protected virtual void OnPropertyChanging(PropertyChangingEventArgsEx e)
Parameters
PropertyChangingEventArgsEx e

The System.ComponentModel.PropertyChangingEventArgs instance containing the event data.

Events

PropertyChanged

Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
System.ComponentModel.PropertyChangedEventHandler

PropertyChanging

Declaration
public event PropertyChangingEventHandlerEx PropertyChanging
Event Type
PropertyChangingEventHandlerEx

Implements
INotifyPropertyChangingEx.PropertyChanging

Extension Methods

SvgExtentions.Traverse<T>(T, Func<T, IEnumerable<T>>)
SvgExtentions.TraverseDepthFirst<T>(T, Func<T, IEnumerable<T>>)
Getting Started
  • Install Now
  • Demos
  • Step-by-Step Tutorial
  • Sample Applications
  • SDK Samples
  • Visual Studio Extensions
Support Resources
  • Code Library
  • Knowledge Base
  • Videos
Community
  • Forums
  • Blogs
  • Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.