HighTechTalks DotNet Forums  

XmlDataDocument as a datasource for combobox?

VB.net microsoft.public.dotnet.languages.vb


Discuss XmlDataDocument as a datasource for combobox? in the VB.net forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Dustin Davis
 
Posts: n/a

Default XmlDataDocument as a datasource for combobox? - 11-02-2006 , 09:36 AM






I have an XmlDataDocument. How do I go about converting this to
something I can use as a datasource for a combobox?

Reply With Quote
  #2  
Old   
BK
 
Posts: n/a

Default Re: XmlDataDocument as a datasource for combobox? - 11-02-2006 , 12:00 PM






Dustin Davis wrote:
Quote:
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.



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.