How set datasource of combobox to xml file

  • Thread starter Thread starter VB Programmer
  • Start date Start date
V

VB Programmer

I have an XML file.

In VB.NET 2005 is there any easy way to set the datasource of the combobox
to this xml file without using code?

Thanks!
 
hi,
you can do this by using DataSet's "ReadXml" Property. what you need
to do is create a compitible XML file for DataSet. i assumed that your
XML file is compitible to get load in DataSet.

use your DataSet object assigned to ComboBox to load the XML file by
passing the filename to it's Property "ReadXml".

i hope this helps.

Lucky
 
hi,
you can do this by using DataSet's "ReadXml" Property. what you need
to do is create a compitible XML file for DataSet. i assumed that your
XML file is compitible to get load in DataSet.

use your DataSet object assigned to ComboBox to load the XML file by
passing the filename to it's Property "ReadXml".

i hope this helps.

Lucky
 
Back
Top