Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Listbox default selected item 1

Status
Not open for further replies.

Crystalyzer

Technical User
Mar 28, 2003
218
I have a listbox that is populated with a dataset. How can I make the listbox default to NO SELECTION? Currently the listbox appears with the first item selected.

Thanks and best regards,
-Lloyd
 
Try

[tt]lstMyList.SelectedIndex = -1[/tt]

Roy-Vidar
 
Worked like a charm !!!!!


Star for you Roy and Thanks!

Thanks and best regards,
-Lloyd
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top