Home All Groups Group Topic Archive Search About

How set datasource of combobox to xml file

Author
9 Jan 2006 5:12 AM
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!

Author
9 Jan 2006 6:56 AM
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
Author
9 Jan 2006 8:05 AM
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
Author
9 Jan 2006 2:18 PM
VB Programmer
Thanks. I'll give it a try....

Show quoteHide quote
"Lucky" <tushar.n.pa***@gmail.com> wrote in message
news:1136789569.551018.101260@g47g2000cwa.googlegroups.com...
> 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
>