Start a drop down list unselected

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi;

Is there a way to populate a drop down list and have it start with no item
selected - but an empty string is not one of the items in the list?
 
No. Even if you execute DropDownList.ClearSelection, the first item would
remain selected. You have to insert a blank valued listitem as the first
item if you wish the clearSelection to cause a SelectedValue of String.Empty.
 
Back
Top