View Single Post
  #3 (permalink)  
Old 07-02-2009, 11:25 AM
Ylva D Ylva D is offline
VB.NET Forum Newbie
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Jul 2009
Age: 29
Posts: 2
Reputation: 0
Ylva D is on a distinguished programming path ahead
Default

Ok. Then something must be really strange about my code because when I step through my sorting function I see that the sort direction is "DESC" and then I run the ToTable() function but when I step through the resulting table like this..

Code:
For r As Integer = 0 To dataTable.Rows.Count - 1

            Dim row As DataRow = dataTable.Rows(r)
            ......
Next
...I see that the table still is sorted in an ascending direction.

What could be the explanation for this?
Reply With Quote