New to Telerik Document ProcessingStart a free 30-day trial

Sort condition that orders rows or columns by cell values, comparing numbers, text, dates, and other data types.

Definition

Constructors

Initializes a new sort condition that orders by cell values in the specified direction.

C#
public ValuesSortCondition(int relativeIndex, SortOrder sortOrder)
Parameters:relativeIndexint

Gets the index of the row or column that is key for sorting relative to the sorted range.

sortOrderSortOrder

The sort order.

Properties

Gets the comparer that orders cell values in ascending or descending sequence.

C#
public override IComparer<SortValue> Comparer { get; }
Property Value:

The comparer used for sorting.

Overrides: SortConditionBase<ICellValue>.Comparer

Gets the cell property definition that identifies the cell value used for sorting.

C#
protected override IPropertyDefinition<ICellValue> PropertyDefinition { get; }
Property Value:

The property definition of the property which is used for sorting.

Overrides: SortConditionBase<ICellValue>.PropertyDefinition