Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can i get the datatable data order by ItemCode?
Message
From
18/05/2012 04:39:36
 
 
To
All
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
How can i get the datatable data order by ItemCode?
Environment versions
Environment:
VB 9.0
OS:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01543801
Message ID:
01543801
Views:
72
Hi all,
I use vb.net and dataset, datatable.
I have 4 reocrds, ItemCode is CR07
CR09
CR07
CR09

I want to sort by ItemCode first, after get the data.
I already try the below code,but can't to do it.
How can i do, Thank you ?
    Ds.TempTable.DefaultView.Sort = "ItemCode"
    For i = 0 To Ds.TempTable.Count - 1
Ds.TempTable.Rows(i).Item("Itemcode")

next


But output same, why?
Next
Reply
Map
View

Click here to load this message in the networking platform