ComponentOne FlexPivot for WinForms
C1.Win.FlexPivot.4.8 Assembly / C1.Win.FlexPivot Namespace / C1FlexPivotGrid Class / Sort Method / Sort(Int32,Int32,IComparer) Method
First row in the sort range.
Number of rows in the sort range.
An System.Collections.IComparer object that compares C1.Win.C1FlexGrid.C1FlexGridBase.Row objects.

In This Topic
    Sort(Int32,Int32,IComparer) Method
    In This Topic
    Sorts a group of rows using the specified comparer.
    Syntax
    'Declaration
     
    Public Overloads Overridable Sub Sort( _
       ByVal rowStart As Integer, _
       ByVal rowCount As Integer, _
       ByVal comparer As IComparer _
    ) 
    public virtual void Sort( 
       int rowStart,
       int rowCount,
       IComparer comparer
    )

    Parameters

    rowStart
    First row in the sort range.
    rowCount
    Number of rows in the sort range.
    comparer
    An System.Collections.IComparer object that compares C1.Win.C1FlexGrid.C1FlexGridBase.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 C1.Win.C1FlexGrid.C1FlexGridBase.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