|
-
Feb 19th, 2005, 08:56 AM
#1
Thread Starter
New Member
Virtual Listview sort
does anyone know if its possible to sort a virtual listview when you click a column? I've been fooling around with it but haven't had any luck, so i'm not even sure it would be possible since technically there are no items in the listview.
-
Feb 19th, 2005, 02:07 PM
#2
Re: Virtual Listview sort
Welcome to the Forums.
What do you mean by a virtual listview that doesnt really have listitems?
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Feb 19th, 2005, 02:12 PM
#3
Thread Starter
New Member
Re: Virtual Listview sort
http://www.mvps.org/vbvision/grouped...box_&_Combobox
there is an example of a virtual listview on that site.
-
Feb 19th, 2005, 02:24 PM
#4
Re: Virtual Listview sort
Oh so cool! I would say yes, but with lots of effort. You would need to (while subclassing
the listview) trap for the NMHEADER type notification and get the iButton to determine the
index number of the listview column was clicked. Then have a boolean flag to determine the
direction of the sort. If clicked once then its opposite from the sorting you originally "loaded"
the listview with, etc. Sort your array or rs accordingly and "reload" the listview in the
appropriate order.
HTH
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|