Click here to Skip to main content
15,886,799 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to sort data in combobox alphabatecally using vb.net which is retriving from database
Posted
Comments
ArunRajendra 9-Jun-14 2:22am    
Post the code where you are retrieving data from database?

1 solution

Add order by clause to your select statement
http://www.w3schools.com/sql/sql_orderby.asp[^]

SQL
SELECT column_name,column_name
FROM table_name
ORDER BY column_name,column_name ASC|DESC;
 
Share this answer
 
v2
Comments
Aravindba 9-Jun-14 4:29am    
5+ ,yes when u select data from sql ,u need to sort data and finally bind in comobobox,this is way to show sorting datas

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