The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+
Row

SortField.Comparer Property

Gets or sets the comparer used to sort the column.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v19.2.Core.dll

Declaration

public IComparer<CellValue> Comparer { get; set; }
Public Property Comparer As IComparer(Of CellValue)
public IComparer<CellValue> Comparer { get; set; }
Public Property Comparer As IComparer(Of CellValue)
public IComparer<CellValue> Comparer { get; set; }
Public Property Comparer As IComparer(Of CellValue)

Property Value

Type Description
IComparer<CellValue>

A IComparer<T><CellValue,> object used to compare cell values in a column.

Property Value

Type Description
IComparer<CellValue>

A IComparer<T><CellValue,> object used to compare cell values in a column.

Property Value

Type Description
IComparer<CellValue>

A IComparer<T><CellValue,> object used to compare cell values in a column.

Remarks

You can use default built-in comparers - the Worksheet.Comparers.Ascending for sorting in ascending order and the Worksheet.Comparers.Descending for sorting in descending order, or implement a custom comparer.

For an example of a custom comparer, see the Worksheet.Sort method.

See Also