FlexGrid for WinForms
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 Row objects.
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 _
) 
'Usage
 
Dim instance As C1FlexGridBase
Dim rowStart As Integer
Dim rowCount As Integer
Dim comparer As IComparer
 
instance.Sort(rowStart, rowCount, comparer)
public virtual void Sort( 
   int rowStart,
   int rowCount,
   IComparer comparer
)
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 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.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

C1FlexGridBase Class
C1FlexGridBase Members
Overload List

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Send Feedback