Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Avalon

Vista - How to sort on a path in a listview ?

 
 
Old 03-21-2007   #1 (permalink)
Pon


 
 

How to sort on a path in a listview ?

Is there a way to sort a listview not on a property of its dataitem but on a
"sub-property" (i mean a property of the value of one of its property).

For instance, if my listview displays a list of Person and a 'Person' has a
'Home' property which has a 'Location' property, i'd like to be able to
sort on the Path "Home.Location".
As "Home.Location" is not a property of Person but a path, I can't get it
work with the sortdescription structure. Ideas ?



My System SpecsSystem Spec
Old 03-23-2007   #2 (permalink)
Pon


 
 

Re: How to sort on a path in a listview ?

Was a bug in my own code. It works perfectly with a path. Sorry.

"Pon" <pongla.public@laposte.net> wrote in message
news:e2ruQ2BbHHA.5080@TK2MSFTNGP02.phx.gbl...
> Is there a way to sort a listview not on a property of its dataitem but on
> a "sub-property" (i mean a property of the value of one of its property).
>
> For instance, if my listview displays a list of Person and a 'Person' has
> a 'Home' property which has a 'Location' property, i'd like to be able to
> sort on the Path "Home.Location".
> As "Home.Location" is not a property of Person but a path, I can't get it
> work with the sortdescription structure. Ideas ?
>



My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
Re: Can I sort within a sort, in folder view (eg., Name, Date) Live Mail
Sort by name doesnt sort correctly in my opinion Vista file management
BUG? (Test-Path $path -IsValid) and empty $path PowerShell
BUG/ANNOYANCE: PoSH autocompletes the full path rather than a minimal path PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46