Databound Listbox - Item Selection Problem
Posted on 2014-02-17
I have a winform with a listbox databound to a single column (EmailName) of an Access table via a tableadapter. The listbox SelectionMode is set to MultiSimple and the ValueMember is set to "EmailName". The listbox fills correctly and I have coded (lboxEmailName.ClearSelected()) so no items are selected on form load .
The problem - When I select an item that is not the first item on the list, the first item changes to the item selected.
For example: There are three names in the listbox in the following order; Moe, Larry, Curly. If I select Larry, then first name on the list (Moe), changes to Larry. Also, I can't deselect the first name on the list as long as another name is selected.
I have no experience with listboxes, I just need to have a listbox that will allow the user to make a single or multiple selection from a short list of names.
Can someone help?