XML in a combobox

  • Thread starter Thread starter tureypr
  • Start date Start date
T

tureypr

Hello Wolrd!

I'm trying to add items. to a comboox from a XML file,

I want to add the parents elements to thre combobox and when you
select an item in the combobox, in a another combobox display the
child elements of the parent element selected.

pleae someone help me
 
Hi you can create a new DataSet object and real in your data from an XML
file, then you can bind the DataSource and DataMember and DataValue
properties of the combobox to your DataSet.

HTH - OHM

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .


tureypr said:
Hello Wolrd!

I'm trying to add items. to a comboox from a XML file,

I want to add the parents elements to thre combobox and when you
select an item in the combobox, in a another combobox display the
child elements of the parent element selected.

pleae someone help me
 
* (e-mail address removed)-spam.invalid (tureypr) scripsit:
I'm trying to add items. to a comboox from a XML file,

I want to add the parents elements to thre combobox and when you
select an item in the combobox, in a another combobox display the
child elements of the parent element selected.

The solution depends on how data is stored in the XML file. Can you
post a sample?

In some cases, the solution posted in the other reply will be the way to
go, in more complicated cases you will have to use classes from the
'System.Xml' namespace ('XmlDocument' etc.).
 
Back
Top