Click here to Skip to main content
15,609,640 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a drop down in which I have different locations and depending upon this location drop down I have displayed Agents belonging to respective location.Now what I need is..I have allocated a agent to a location,so the agent which is allocated should be displayed last in drop down .I am not getting How to do this?Need help.
Updated 26-Jan-13 20:40pm
Vyacheslav Voronenko 27-Jan-13 2:33am    
Have you tried anything? Saying writing select to database, creating view with dropdown, etc. What issue you are struggling with?

1 solution

This is quite simple, since the options are displayed in the dropdown in the order you put them. So if you want to have an option as last one, just add it as last one. But the code for "how to add as last one" depend on the rest of the code and the logic you want to implement.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900