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

Represents a sort descriptor that contains the information for sorting a specific column.

Definition

Constructors

Initializes a new instance of the ColumnSortDescriptor class.

C#
public ColumnSortDescriptor(string memberName, Type dataType)
Parameters:memberNamestringdataTypeType

Properties

Gets or sets a value that indicates whether the sort descriptor should be applied.

C#
public bool IsActive { get; set; }

Gets or sets descriptor's sort direction.

C#
public override ListSortDirection SortDirection { get; set; }

Overrides: SortDescriptorBase.SortDirection

Methods

Create sort expression.

C#
public override Expression CreateSortKeyExpression(Expression itemExpression)
Parameters:itemExpressionExpressionReturns:

Expression

Overrides: SortDescriptorBase.CreateSortKeyExpression(Expression)

Create sort expression.

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

Expression

Overrides: SortDescriptorBase.CreateSortKeyExpression(ParameterExpression)