Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Attach a DataTable to a DataSet
Message
From
14/03/2005 10:10:01
 
 
To
14/03/2005 09:59:57
General information
Forum:
ASP.NET
Category:
ADO.NET
Environment versions
Environment:
C# 1.1
OS:
Windows 2000 SP4
Network:
Windows NT
Database:
MS SQL Server
Miscellaneous
Thread ID:
00995022
Message ID:
00995486
Views:
14
Sylvain,

I'm not sure what you're trying to do ... this thread actually seems to have two different topics. One about adding a DataTable to an existing DataSet (to which I answered to use the .Merge() method ... I don't know if you saw that post), and this one about filling a DataSet from an XML string. You *can* bind this to your Combo ... I'm not sure why you're having trouble. Could you post some code?

~~Bonnie



>Thanks Bonnie. It work, except that the table created in the DataSet can't be bounded to my combobox because the field names don't appear to be there. Must I define my table in the DataSet before importing the XML or is there a way to send back the XML and the XSD together from my BO?
>
>>Yeah, examples of this don't seem to be easy to find, but it's quite easy to do:
>DataSet oData = new DataSet();
>>StringReader sr = new StringReader(XML);
>>oData.ReadXml(sr, XmlReadMode.InferSchema);
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform