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 06:19:19
John Baird
Coatesville, Pennsylvania, United States
 
 
To
18/05/2012 04:39:36
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 9.0
OS:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01543801
Message ID:
01543803
Views:
44
>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?
>
Look at using a DataView or use the Datatable.Select method to get the filtered rows...
Previous
Reply
Map
View

Click here to load this message in the networking platform