Start a drop down list unselected

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?
 
G

Guest

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top