New to Telerik UI for WPFStart a free 30-day trial

Represents a sort descriptor, which sorts by the value of its Column.

Definition

Constructors

C#
public ColumnSortDescriptor()

Fields

ColumnProperty

DependencyProperty

The backing DependencyProperty storage for the Column property.

C#
public static readonly DependencyProperty ColumnProperty

Properties

Gets or sets the column that will be used for sorting.

C#
public GridViewColumn Column { get; set; }
Property Value:

The column that will be used for sorting.

Methods

Creates a sort expression that returns the sorting key for each item in a collection.

C#
protected override Expression CreateSortKeyExpression(ParameterExpression parameterExpression)
Parameters:parameterExpressionParameterExpression

The parameter expression, which will be used for sorting.

Returns:

Expression

Expression that creates a sort key for the given item.

Overrides: SortDescriptorBase.CreateSortKeyExpression(ParameterExpression)