XmlDataDocument as a datasource for combobox?

  • Thread starter Thread starter Dustin Davis
  • Start date Start date
D

Dustin Davis

I have an XmlDataDocument. How do I go about converting this to
something I can use as a datasource for a combobox?
 
Dustin said:
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.
 
Back
Top