dropDownList.Items.Add(new ListItem("Default Panel", "0"));
DropDownList.Items.Insert method allows you to specify the index of the item within the DropDownList where you want to insert the ListItem.
dropDownList.Items.Insert(0, new ListItem("Default Panel", "0"));Here Default Value will be added as the first item in the DropDown.
No comments:
Post a Comment