Ellen Hu

Ellen Hu

  • NA
  • 63
  • 0

How to set drop down list order?

Jul 10 2010 1:01 AM

Hi All,

I have a country drop down list,  the listitems are from database. At code behind I had added "--Select Country--" as default item by using:

ddlCountry.Item.Add(0, "--Select Country--"); after binding.

Now if I want to set United Stated as 2nd item, and the other countries still will be in alphabetical order. How can achive this task?

Thank you in advance. Any comment will be highly appreciated.

ellen

 


Answers (5)