C1.Win.C1FlexGrid Namespace > C1FlexGridBase Class > Sort Method : Sort(IComparer) Method |
'Usage
Dim instance As C1FlexGridBase Dim comparer As IComparer instance.Sort(comparer)
public: virtual void Sort( IComparer^ comparer )
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.
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