BCGControlBar Library for .NET
GridSort Constructor(GridData,IList,Boolean,ArrayList)




Specifies GridData. A reference to it is required if you need to implement custom comparison of items.
Collection of items to sort.
Sort order. If true, the sort order is ascending.
A collection of indexes. If list contains GridDataRow objects, then the sorting algorithm will compare rows by comparing individual items taken according to the indexes from this collection. This allows sorting of grid data by multiple columns.
Constructs and initializes a GridSort object.
Syntax
'Declaration
 
Public Function New( _
   ByVal data As GridData, _
   ByVal list As IList, _
   ByVal ascending As Boolean, _
   ByVal sortIndexes As ArrayList _
)
'Usage
 
Dim data As GridData
Dim list As IList
Dim ascending As Boolean
Dim sortIndexes As ArrayList
 
Dim instance As New GridSort(data, list, ascending, sortIndexes)
public GridSort( 
   GridData data,
   IList list,
   bool ascending,
   ArrayList sortIndexes
)
public: GridSort( 
   GridData* data,
   IList* list,
   bool ascending,
   ArrayList* sortIndexes
)
public:
GridSort( 
   GridData^ data,
   IList^ list,
   bool ascending,
   ArrayList^ sortIndexes
)

Parameters

data
Specifies GridData. A reference to it is required if you need to implement custom comparison of items.
list
Collection of items to sort.
ascending
Sort order. If true, the sort order is ascending.
sortIndexes
A collection of indexes. If list contains GridDataRow objects, then the sorting algorithm will compare rows by comparing individual items taken according to the indexes from this collection. This allows sorting of grid data by multiple columns.
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

GridSort Class
GridSort Members
Overload List

Send Feedback