Grayda
Member
- Joined
- May 20, 2010
- Messages
- 16
- Programming Experience
- 10+
I'm writing an app that pulls information from a DataSet as a one-way thing (e.g. the datasource populates a listbox, but for selection purposes only -- the user cannot change the list values). My problem is, when I select something from the listbox, all of the other listboxes change too, as if the control is telling the others "Update your contents to display what is in row 5"
Say my dataset looks like this (dataset > table > column > row value):
I then use the IDE to bind lstOne and lstTwo (both listboxes) to datInfo, and use the DisplayMember to bind lstOne to colOne and lstTwo to colTwo.
When I run and click on a value in one listbox, the other one follows suit. For example if I click on "One Three" in lstOne, lstTwo displays "Two Three". I expect to click on "One Three" then be able to independently set lstTwo to "Two One"
This seems counter-intuitive, so is there a way to do what I'm after from the IDE, or will I have to do it all from code?
Say my dataset looks like this (dataset > table > column > row value):
VB.NET:
datInfo
tblBlah
colOne
One One
One Two
One Three
colTwo
Two One
Two Two
Two Three
Two Four
I then use the IDE to bind lstOne and lstTwo (both listboxes) to datInfo, and use the DisplayMember to bind lstOne to colOne and lstTwo to colTwo.
When I run and click on a value in one listbox, the other one follows suit. For example if I click on "One Three" in lstOne, lstTwo displays "Two Three". I expect to click on "One Three" then be able to independently set lstTwo to "Two One"
This seems counter-intuitive, so is there a way to do what I'm after from the IDE, or will I have to do it all from code?