Method Compare
| Improve this Doc View SourceCompare(DataRow, DataRow)
Compares values of two DataRow objects.
Declaration
public int Compare(DataRow x, DataRow y)
Parameters
| Type | Name | Description |
|---|---|---|
| DataRow | x | The left DataRow. |
| DataRow | y | The right DataRow. |
Returns
| Type | Description |
|---|---|
| System.Int32 | 0 if two values are equal, 1 if left value is greater than right value, otherwise -1. |
Implements
System.Collections.Generic.IComparer<T>.Compare(T, T)
|
Improve this Doc
View Source
Compare(DataRow, DataRow, SortDirection)
Compares values of two DataRow objects, with specified sorting order.
Declaration
public abstract int Compare(DataRow x, DataRow y, SortDirection direction)
Parameters
| Type | Name | Description |
|---|---|---|
| DataRow | x | The left DataRow. |
| DataRow | y | The right DataRow. |
| SortDirection | direction | The specified sorting order. |
Returns
| Type | Description |
|---|---|
| System.Int32 | 0 if two values are equal, 1 if left value is greater than right value, otherwise -1. |