Skip to main content
.NET Framework 4.5.2+
Row

Worksheet.Comparers Property

Provides access to default comparers used to sort cell values in ascending and descending order.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v22.1.Core.dll

Declaration

IComparers Comparers { get; }

Property Value

Type Description
DevExpress.Spreadsheet.IComparers

A DevExpress.Spreadsheet.IComparers container for default comparers.

Remarks

Use the Worksheet.Comparers.Ascending and Worksheet.Comparers.Descending objects as default comparers for sort operations with cell values - for specifying ascending and descending order respectively. The default comparer can be used as a parameter for the Worksheet.Sort method or assigned to the SortField.Comparer property.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Comparers property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also