GrapeCity.Windows.SpreadSheet.Data Namespace > SortInfo Class > SortInfo Constructor : SortInfo Constructor(Int32,Boolean) |
true
, sort order is ascending.
'Declaration Public Function New( _ ByVal index As System.Integer, _ ByVal ascending As System.Boolean _ )
'Usage Dim index As System.Integer Dim ascending As System.Boolean Dim instance As New SortInfo(index, ascending)
true
, sort order is ascending.for (int i = 0; i < 10; i++) { gcSpreadSheet1.Sheets[0].SetValue(i, 0, i); } private void Button_Click(object sender, RoutedEventArgs e) { gcSpreadSheet1.Sheets[0].SortRange(0, 0, 10, 1, true, new SortInfo[] { new SortInfo(0, false) }); gcSpreadSheet1.Invalidate(); }
For i As Integer = 0 To 9 GcSpreadSheet1.Sheets(0).SetValue(i, 0, i) Next Private Sub Button_Click(sender As System.Object, e As System.Windows.RoutedEventArgs) GcSpreadSheet1.Sheets(0).SortRange(0, 0, 10, 1, True, New SortInfo() {New SortInfo(0, False)}) GcSpreadSheet1.Invalidate() End Sub
Target Platforms: Windows 7, Windows 8 Desktop, Windows Vista SP1 or later, Windows Server 2000, Windows 2000 Professional (SP4), Windows XP (SP2), Windows 2008, Windows 2003 Server (SP1)