Click here to Skip to main content
15,896,359 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
If I load a table into my app (from a database) i want to sort by name or for example e-mail adress, how can i do that?
Posted

You must see SQL Order by[^] command
1,660,000 results
 
Share this answer
 
Comments
OdeJong 23-Apr-12 9:08am    
oke I know that, but that is not what I want.
I want to let the user sorts the columns just the way he/she wants.
So if the user clicks on one of the columns, the same column must sort by alphabet
Prasad_Kulkarni 23-Apr-12 12:31pm    
So for that you need to elaborate your question..which control you're using for displaying data, what you have tried so far. How can one get by your question what exactly you wants and do something needful for you. Please elaborate your question.
I don't need any SQL Statements it is when the app is running that i want to let the user choose how he/she wants to sort the columns. In wich order that's all. I'm going to search for another solution thanks for your reaction.
 
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