Class ValueComparer
ValueComparer is used to sort the values based on the value type of the cells.
Inheritance
System.Object
ValueComparer
Implements
System.Collections.IComparer
Namespace: Syncfusion.Windows.Forms.Grid
Assembly: Syncfusion.Grid.Windows.dll
Syntax
public class ValueComparer : Object, IComparer
Constructors
ValueComparer()
Declaration
public ValueComparer()
Methods
Compare(Object, Object)
compare the value for the sorting
Declaration
public int Compare(object x, object y)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | x | first object |
| System.Object | y | second object |
Returns
| Type | Description |
|---|---|
| System.Int32 | Returns the position. |
Implements
System.Collections.IComparer