G
Guest
I have 7 comboboxes on my main form, one for each day of the week, and the
XML file they read from looks like this:
<Shifts>
<Shift Time = "OFF"/>
<Shift Time = "Day"/>
<Shift Time = "Night"/>
<Shift Time = "12:00-20:00"/>
etc...
<Shifts/>
I have set the dataSource as 'Shift' and the displaymember as 'Time'. Thing
is, when I go to the first combobox and set the field as "Off", all of the
other comboboxes change to "Off". When I change the second one to "Day", the
rest change to day.
I tried changing the XML file to read:
<Shifts>
<Shift Time1 = "Off" Time2 = "Day" Time3 = "Night" etc,/>
<Shift/>
<Shifts/>
but I only had one field (Off) showing in the combobox.
How can I access each one individually?
Any help would be much appreciated.
Alan, (new to C# and struggling to learn).
XML file they read from looks like this:
<Shifts>
<Shift Time = "OFF"/>
<Shift Time = "Day"/>
<Shift Time = "Night"/>
<Shift Time = "12:00-20:00"/>
etc...
<Shifts/>
I have set the dataSource as 'Shift' and the displaymember as 'Time'. Thing
is, when I go to the first combobox and set the field as "Off", all of the
other comboboxes change to "Off". When I change the second one to "Day", the
rest change to day.
I tried changing the XML file to read:
<Shifts>
<Shift Time1 = "Off" Time2 = "Day" Time3 = "Night" etc,/>
<Shift/>
<Shifts/>
but I only had one field (Off) showing in the combobox.
How can I access each one individually?
Any help would be much appreciated.
Alan, (new to C# and struggling to learn).