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

adding memeber to dropdown list 1

Status
Not open for further replies.

TheConeHead

Programmer
Aug 14, 2002
2,106
US
I am populating a drop down list via a sqldatareader, how can I also manually add a member to this drop down list? I have tried but the manual one gets wiped out once the datareader adds its members....

[conehead]
 
you should add after bindind the data to the dropdown...

example:

...
mydropdown.databind()
...
mydropdown.Items.insert(0,"-select one-")
mydropdown.Selectedindex = 0

-DNG
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top