~Bean~ Level: VB Guru

 Registered: 07-04-2003 Posts: 488
|
Re: no item selected in dropdown list
If you are binding the Drop Down, you probably want to add the extra item AFTER you bind. Setting its index to 0 (zero) should make it first in the list, and, by default, selected.
something like...
'do your binding here...
DropDown1.DataBind
'then...
Dim theItem As New ListItem
theItem.Value = "none"
theItem.Text = ""
DropDown1.Items.Insert(0, theItem)
|
____________________________
Eggheads unite! You have nothing to lose but your yolks.
|