By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,639 Members | 1,326 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,639 IT Pros & Developers. It's quick & easy.

XmlDataDocument as a datasource for combobox?

P: n/a
I have an XmlDataDocument. How do I go about converting this to
something I can use as a datasource for a combobox?
Nov 2 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
BK
Dustin Davis wrote:
I have an XmlDataDocument. How do I go about converting this to
something I can use as a datasource for a combobox?
You don't have to convert it to anything. Create a dataset with the
same structure as the xml data. Bind the combobox to the dataset. In
the form load (or whereever you want to populate the combobox), enter
something like:

Me.MyDataSet.ReadXml("SomeData.xml")

where MyDataSet is the dataset you created and SomeData.xml is the xml
data file.

Nov 2 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.