M
Marko Maehner
Hi!
I have problems with databinding of xml files to comboboxes and then
getting the selected value of a selected item. For example, I have the
following xmlfile:
<?xml version="1.0" encoding="UTF-8" ?>
<Foo xmlns="http://tempuri.org/test.xsd">
<Person xmlns="http://tempuri.org/test.xsd">
<number>114</number>
<firstname>John</firstname>
<lastname>Doe</lastname>
</Mitarbeiter>
</Foo>
1. Can anybody help me (with a snipplet of code) to fill a combobox
(Windows form) with both names (first AND last name as displayed
members) and number as a valuemember?
2. When an item of this cbx has been selected a function is called to
show the selected VALUE (In this case number 114)?
Can anybody show me this line of code to get the selected value?
Hope anyone can help me with one of these problems because I have
tried so much and nothing worked correctly...
Thanks in advance,
Marko
I have problems with databinding of xml files to comboboxes and then
getting the selected value of a selected item. For example, I have the
following xmlfile:
<?xml version="1.0" encoding="UTF-8" ?>
<Foo xmlns="http://tempuri.org/test.xsd">
<Person xmlns="http://tempuri.org/test.xsd">
<number>114</number>
<firstname>John</firstname>
<lastname>Doe</lastname>
</Mitarbeiter>
</Foo>
1. Can anybody help me (with a snipplet of code) to fill a combobox
(Windows form) with both names (first AND last name as displayed
members) and number as a valuemember?
2. When an item of this cbx has been selected a function is called to
show the selected VALUE (In this case number 114)?
Can anybody show me this line of code to get the selected value?
Hope anyone can help me with one of these problems because I have
tried so much and nothing worked correctly...
Thanks in advance,
Marko