LoadXML into ComboBox

  • Thread starter Elliot M. Rodriguez
  • Start date
E

Elliot M. Rodriguez

I am having difficulty loading and displaying data from an XML file into
a ComboBox Compact Framework control.

The XML file has 1 parent node and one child node, which contains the
data I want:

- node1
--- node2
------ dataitem1
------ dataitem2
--- /node2

I would like the ComboBox's DisplayMember property to be dataitem1, and
the ValueMember to be dataitem2.

The XML file is loaded from a dataset. The file is loaded correctly - I
can debug and see the number of rows in the dataset.

Given a dataset, what is the syntax for binding the DisplayMember and
ValueMember properties described above?

Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top