I am working in Visual Studio 2005 Pro. I have created a WinForm with access to a SQL database. On the WinForm I have two listboxes, the displays DivisionCode and the other DivisionID both having the same DataSource but different DisplayMembers. They occupy the same space on the form with DivisionCode on top of DivisionID.
Whenever a user selects (or deselects) a value/index in the DivisionCode listbox, the corresponding value/index in the DivisionID must programmatically be selected/deselected.
The DivisionCode is used because it has more meaning for the user. The DivisionID is used for further lookups to the database.
How can I accomplish this, using the SelectedIndexChanged event?
Thanx in advance.