Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can i get the datatable data order by ItemCode?
Message
De
18/05/2012 06:19:19
John Baird
Coatesville, Pennsylvanie, États-Unis
 
 
À
18/05/2012 04:39:36
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB 9.0
OS:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01543801
Message ID:
01543803
Vues:
45
>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...
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform