Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
XML to datarow
Message
 
 
À
13/05/2013 13:27:40
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
Versions des environnements
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01573699
Message ID:
01573710
Vues:
26
>>foreach (DataRow row in ds.Tables[0].Rows)
>>{
>> foreach (DataColumn column in ds.Tables[0].Columns)
>> {
>> Console.WriteLine (column.ColumnName + ": " + row[column.ColumnName].ToString());
>> }
>>}
>
>Don't think that will work if you want to add the row to an existing table since the Row generated from the XML would not be the same as the row created by DataTable.NewRow().

Yes, I think I'll keep it as a separate new dataset.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform