Home All Groups Group Topic Archive Search About

DataBound ListBox selects first item

Author
6 Mar 2006 12:31 PM
Tick Tock
I 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

AddThis Social Bookmark Button