Quantcast
Channel: sort listview by date
Viewing all articles
Browse latest Browse all 7

sort listview by date

$
0
0

Hi Darren,

I guess you are using a Listview and not a Listbox, because a normally Listbox has just one column. The Question is, what is the Source of your data. In case it is a Database you can sort the data over the select Statement before adding in the Listview.

When not you can use a own Class with Name and Date and a List (of yourClass) in connection with a Date Comparer. You have to sort your data before you add these.  The types of columns in a listbox or listview are Strings and sort by date is not possible by the control. You have to do this manually. Sorry for my not perfect English, I am not a native English speaker.

Regards,


Jens Gerber


Viewing all articles
Browse latest Browse all 7

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>