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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to set blank selection as default in DropDownList 1

Status
Not open for further replies.

royyan

Programmer
Jul 18, 2001
148
US
Maybe this is a very simple question.
I built a DropDownList by using data binding. But I don't know how to add an additional blank selection to the top of the list as default selection.
Your help is highly appreciated!
 
dim li as new listItem("0","SELECT ONE")
myList.Items.Insert(0,li)

constructor accepts (value,text) as args. Modify as needed.

:)
paul
penny1.gif
penny1.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top