Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
XML to datarow
Message
 
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
Environment versions
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01573699
Message ID:
01573710
Views:
27
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform