Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Pro VB 6
|
Pro VB 6 For advanced Visual Basic coders working in version 6 (not .NET). Beginning-level questions will be redirected to other forums, including Beginning VB 6.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 21st, 2006, 08:52 AM
Registered User
 
Join Date: May 2004
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default listview sorting in VB 6.0


Hi,

Does anybody know how do we do sorting for listview in VB 6.0

Thanks

Joseph
 
Old April 24th, 2006, 03:34 AM
Authorized User
 
Join Date: Mar 2006
Posts: 80
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,
Set Sorted CheckBox (on Sorting Page of ListView Properties Dialog) to true an type SortKey (on same Page) number to refering to Column (it's start form zero).

Or, in code:

ListView.Sorted = True
ListView.SortKey = 2

Peko

 
Old April 24th, 2006, 02:31 PM
Registered User
 
Join Date: May 2004
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks peko





Similar Threads
Thread Thread Starter Forum Replies Last Post
VB.NET Listview Control RahulPrajapati .NET Framework 2.0 1 April 23rd, 2007 03:52 AM
Can we reposition the columns o listview-VB.NET pauljoy Pro VB 6 0 January 10th, 2006 01:43 AM
Equivalent of ListView.FindItem in VB.NET ashu_from_india VS.NET 2002/2003 1 October 24th, 2005 02:29 PM
Sorting a ListView JelfMaria VB How-To 3 June 10th, 2005 01:46 PM
Listview Sorting adroc Pro VB 6 0 June 11th, 2003 01:26 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.