VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Sorting by columnheaders in listviews

Adam Hansen  (1 Submission)   Miscellaneous   Visual Basic 3.0   Unknown Difficulty   Wed 3rd February 2021

This allows a user to sort the contents of a listview by clicking on a column header in report-mode. Clicking again will sort descending.

Assumes
This assumes that a ListView named 'ListView1' exists on a form, and that code exists to put values into it. Also, the ListView style-property must be 'report'. Paste the code into the 'General Declarations' area of your form (below any other global declarations you may have) and substitute 'ListView1' with the name of your listview.

Rate Sorting by columnheaders in listviews (39(39 Vote))
Sorting by columnheaders in listviews.bas

Sorting by columnheaders in listviews Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters