Hello,
I am using TreeView Control Version 1.13.2 and I want to sort (by name, by size, by date ....) the list of the file of the ListView on clicking the column header.
Is it possible? How can I do that?
Thanks
Sort column
I'm not sure I understand your question right. You want to sort the items in the treeview by e. g. date, am I right?
Crunching for Fab36_Folding-Division at Folding@Home. Join Fab36/Fab30! - Folding@Home and BOINC
Boycott DRM! Boycott HDCP!
Boycott DRM! Boycott HDCP!
There's a property SortingCriteria. Set it to the index of the column by which you want to sort. This index must be the same as the index that the namespace's IShellFolder2/IShellDetails implementation uses for the column.
Here are some default column indexes:
Another way might be to send a TVM_SORTCHILDRENCB message to the treeview and do the sorting all by yourself. This gives you full control, but requires more work and some understanding of how the shell works internally.
HTH
TiKu
Here are some default column indexes:
- 0 - Name
- 1 - File size
- 2 - File type
- 3 - Last changed on
Another way might be to send a TVM_SORTCHILDRENCB message to the treeview and do the sorting all by yourself. This gives you full control, but requires more work and some understanding of how the shell works internally.
HTH
TiKu
Crunching for Fab36_Folding-Division at Folding@Home. Join Fab36/Fab30! - Folding@Home and BOINC
Boycott DRM! Boycott HDCP!
Boycott DRM! Boycott HDCP!