FlexGrid for WinForms | ComponentOne
C1.Win.FlexGrid Namespace / Node Class / Sort Method / Sort(IComparer) Method
An object that implements the System.Collections.IComparer interface used to compare Row objects. This can be used to provide custom sorting.

In This Topic
    Sort(IComparer) Method
    In This Topic
    Sorts this node's child nodes using a given System.Collections.IComparer object to determine the node order.
    Syntax
    'Declaration
     
    
    Public Overloads Sub Sort( _
       ByVal comparer As IComparer _
    ) 
    public void Sort( 
       IComparer comparer
    )

    Parameters

    comparer
    An object that implements the System.Collections.IComparer interface used to compare Row objects. This can be used to provide custom sorting.
    Remarks

    The grid recognizes two types of row: regular rows which contain data, and node rows which are used to group data. This method only sorts the row nodes; it does not reorder the data rows within each node.

    To sort the data rows, use the grid's Sort(SortFlags,Int32) method instead.

    See Also