From: Mojo on
Hi All

I have a folder of files which have a filename format of
<classname>-<yyyymmddhhmm>.xml

I currently read in this file list using a filelistbox and listview to show
the files, but they are all jumbled up.

Ideally I like to group them by month and year so that I get something like:

[+] Feb 10
[+] Sept 09
[+] Aug 09
[+] Feb 09

and when you click the plus it shows the files within, eg:

[+] Feb 10
[-] Sept 09
[ ] class4-0909142040.xml 14 Sept 09 20:40
[ ] class2-0909131710.xml 13 Sept 09 17:10
[ ] class3-0909112136.xml 11 Sept 09 21:36
[+] Aug 09
[+] Feb 09

I'm trying to do this with a treeview, but I don't know how to generate the
group headings (ie Sept 09) and the files within them (ie
class4-.......xml) - any ideas??

Thank you