I have a windows form with 3 comboboxes and a XML file as following
<?xml version="1.0"?>
<shrtcutkeys>
<Keysmain>
<keychars>
<key1>
Ctrl
</key1>
<key1>
Alt
</key1>
<key1>
Shift
</key1>
</keychars>
</Keysmain>
<Seckeys>
<keychars>
<key2>
Ctrl
</key2>
<key2>
Alt
</key2>
<key2>
Shift
</key2>
</keychars>
</Seckeys>
<Alphas>
<keychars>
<key3>
a
</key3>
<key3>
b
</key3>
<key3>
c
</key3>
</keychars>
</Alphas>
</shrtcutkeys>
So i would like to display all key1 in combobox1 and all key2 in combox2 and so on so forth..tried doing this but not really working
DataSet dsSet = new DataSet();
dsSet.ReadXml("C:\\Users\\jackandjill\\Documents\\Visual Studio 2010\\Projects\\highlite\\highlite\\keys.xml");
comboBox1.DataSource = dsSet.Tables["keys"];
comboBox1.DisplayMember = "key1";