Why is the dropdown not showing my blank item first? Here is what I have
drpList.Items.Add(New ListItem(\"\", \"\"))
With drpList
.DataSource = myContro
Like "Whisk" Said, the trick is in "AppendDataBoundItems" property
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
DropDownList1.AppendDataBoundItems = true;
DropDownList1.Items.Insert(0, new ListItem(String.Empty, String.Empty));
DropDownList1.SelectedIndex = 0;
}
}
Thanks "Whisk"