|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
DataBound ListBox selects first itemI am fairly new at developing, but have decided to implement an application
that uses a comboBox to populate a listbox, Both comboBox and ListBox are DataBound. For example: if a type of car is selected in the comboBox the list box will show that type and the user can then select from the listbox which car to look at. The problem occurs in the listBox, it selects the first item in the listbox, on Form load. I assume the selectedIndex changes while it is populating. I have tried setting the SelectedIndex to -1, but it does not appear to make any difference. Is there a way to stop the selection automatically, so that the user can make the selection. Thank you for your time |
|||||||||||||||||||||||