I have a DropDownList that is filled with values returned by a SQL Query. After the list is filled, I add two options manually to this DropDown: -- Select -- and ALL.
When the page loads, the DropDownList shows -- Select -- as the default value. When the user opens the DropDownList, the SQL Query returned list opens along with ALL option also.
I want to make this ALL appear as the fist item in the list when the list opens. I can’t used: DropDownList.SelectedIndex because I want have already made -- Select -- as the selected index.
How to make ALL the first option when the list opens?
As much as I understand your dream is to have a dropdownlist like this
You can do this