Goal:
Have the latest data to be in the first row and not in the end of listview. The program is in WPF.
Problem:
Based on this source code, don’t know how to recieve the latest data in the first row in the listview
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
For the sake of simplicity, that sample code is loading hard-coded data into the ListView. It isn’t retrieving live data from a database, as you will presumably be doing.
If at all possible, you should sort the data when you retrieve it from the database. Then you’ll have no problem just binding that sorted data to your ListView