Sort items when groups are shown

The place for threads about TimoSoft ExplorerListView.
Post Reply
User avatar
Mex
Captain
Posts: 130
Joined: 24 Sep 2009, 19:47

Sort items when groups are shown

Post by Mex »

Hi Timo!

Is there a way to sort items, when groups are shown?
Sorting works fine, when groups are not show.


Regards
Meelis
Attachments
sort.png
(50.2 KiB) Not downloaded yet
User avatar
TiKu
Administrator
Administrator
Posts: 832
Joined: 28 Sep 2004, 21:10
Location: München
Contact:

Re: Sort items when groups are shown

Post by TiKu »

Hi,

It works for me on Windows 7 SP1. I just took the Events sample, put a call to ExLvwU.SortItems into the Form_Click handler, started the sample and renamed some items. After clicking onto the form, the items have been sorted correctly. I tried this a couple of times with different namings.
Which version of Windows are you trying with? Can you create a small sample app that demonstrates the problem?

Regards
TiKu
Crunching for Fab36_Folding-Division at Folding@Home. Join Fab36/Fab30! - Folding@Home and BOINC
Boycott DRM! Boycott HDCP!
User avatar
Mex
Captain
Posts: 130
Joined: 24 Sep 2009, 19:47

Re: Sort items when groups are shown

Post by Mex »

Hi,

I also tested your events sample, but same problem there.
If groups are enabled and you click column header, items are not sorted, but when you set ShowGroups=False, then sorting works fine.

In my app i use workaround - after click and sorting I set showgroups to false and back to true :)
And of course when alternating row background color is used, then we need to "redraw" all items.

Regards
Meelis
User avatar
TiKu
Administrator
Administrator
Posts: 832
Joined: 28 Sep 2004, 21:10
Location: München
Contact:

Re: Sort items when groups are shown

Post by TiKu »

Ok, so which version of Windows are you using? XP?
Crunching for Fab36_Folding-Division at Folding@Home. Join Fab36/Fab30! - Folding@Home and BOINC
Boycott DRM! Boycott HDCP!
User avatar
Mex
Captain
Posts: 130
Joined: 24 Sep 2009, 19:47

Re: Sort items when groups are shown

Post by Mex »

It does not work with Windows XP.
User avatar
TiKu
Administrator
Administrator
Posts: 832
Joined: 28 Sep 2004, 21:10
Location: München
Contact:

Re: Sort items when groups are shown

Post by TiKu »

Seems like Windows XP simply does not support it. I checked my code and it is the same for Windows XP as for Windows 7. I also opened Windows Explorer on Windows XP, activated groups and played around with sorting. If groups are activated, Windows Explorer does not support sorting neither.

Regards
TiKu
Crunching for Fab36_Folding-Division at Folding@Home. Join Fab36/Fab30! - Folding@Home and BOINC
Boycott DRM! Boycott HDCP!
User avatar
Mex
Captain
Posts: 130
Joined: 24 Sep 2009, 19:47

Re: Sort items when groups are shown

Post by Mex »

Thank you! :)
Post Reply