Tag Archives: howto

How to add ListItem to Dropdownlist at first position

Published on January th, 2013
Andri Kasta Marengga

How to add ListItem to Dropdownlist at first position

Recently I knew a “new” method named ddlArea.Items.Insert. Here’s the story how we met Result of code snippet above:  “All Area” item disappear from my dropdownlist, I guess binding dropdownlist with a new datasource replace all its item with new items. If I put ddlArea.Items.Add(myItem) after DataBinding call, myItem will be placed on the last […]

Continue Reading →