SortItems & VirtualMode

The place for threads about TimoSoft ExplorerListView.
Post Reply
alphi
Lieutenant
Posts: 12
Joined: 29 Aug 2006, 20:39

SortItems & VirtualMode

Post by alphi »

Hi,

I recieve an Error -2147467259 by trying SortItems
on a ListView with VirtualMode enabled.
Is this a Bug or is this by definition?

with regards
alphi
User avatar
TiKu
Administrator
Administrator
Posts: 832
Joined: 28 Sep 2004, 21:10
Location: München
Contact:

Post by TiKu »

Virtual mode means, that the listview doesn't know anything about the data it displays. Therefore it can't sort the items.
To sort a virtual listview, make it redrawing itself (e. g. by calling the Refresh method), so it re-queries the items to display from your app. The items are displayed in the same order as you provide them in the ItemGetDisplayInfo event.
Crunching for Fab36_Folding-Division at Folding@Home. Join Fab36/Fab30! - Folding@Home and BOINC
Boycott DRM! Boycott HDCP!
alphi
Lieutenant
Posts: 12
Joined: 29 Aug 2006, 20:39

Sorting

Post by alphi »

Thanks for the hint.
Works fine. :mrgreen:

regards
alphi
Post Reply