FlexGrid for WinForms | ComponentOne
C1.Win.C1FlexGrid Namespace / C1FlexGridBase Class / Sort Method / Sort(IComparer) Method
An System.Collections.IComparer object that compares Row objects.

In This Topic
    Sort(IComparer) Method
    In This Topic
    Sorts the grid using the specified comparer.
    Syntax
    'Declaration
     
    
    Public Overloads Overridable Sub Sort( _
       ByVal comparer As IComparer _
    ) 
    public virtual void Sort( 
       IComparer comparer
    )

    Parameters

    comparer
    An System.Collections.IComparer object that compares Row objects.
    Remarks

    The System.Collections.IComparer interface has a single method called System.Collections.IComparer.Compare(System.Object,System.Object) that takes two objects as arguments (in this case, they will be Row objects) and returns -1, 0, or +1. For more details, see the documentation for System.Collections.IComparer.

    Custom sorting can only be used when the grid is in unbound mode.

    See Also