GrapeCity.Win.MultiRow Namespace : SortItem Class |
The GcMutliRow control's GcMultiRow.Sort method can use this class to sort a set of cells. The user can customize sorting with the Comparer property.
If the CellIndex property and the CellName property are valid at the same time for a GcMultiRow control, the CellIndex property has a higher priority.
void SortByCodeMultiCells() { SortItem sortItem1 = new SortItem(0, SortOrder.Ascending); SortItem sortItem2 = new SortItem(1, SortOrder.Descending); SortItem[] sortItems = new SortItem[] { sortItem1, sortItem2 }; // In one sort operator, sort two cells in all rows by using SortItem. this.gcMultiRow1.Sort(sortItems); }
Private Sub SortByCodeMultiCells() Dim sortItem1 As New SortItem(0, SortOrder.Ascending) Dim sortItem2 As New SortItem(1, SortOrder.Descending) Dim sortItems As SortItem() = New SortItem() {sortItem1, sortItem2} ' In one sort operator, sort two cells in all rows by using SortItem. Me.gcMultiRow1.Sort(sortItems) End Sub
System.Object
GrapeCity.Win.MultiRow.SortItem
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