|
-
Dec 3rd, 2002, 10:34 PM
#1
Thread Starter
Addicted Member
Hiding listview columns?
Using the method of setting the width of the column to 0 then subclassing as described on http://www.vbforums.com/showthread.p...ighlight=cool, I was able to "hide" a listview collumn in vb6 without any problems, HOWEVER even with the upgrade wizard I cannot for the life of me get that code working in .NET.
Anyone here gotten it working, know how to get it to work, or know a completely different way that works? Thanx.
-
Dec 4th, 2002, 04:59 PM
#2
Registered User
I often work with datasets that I display in listviews, and as that is so fast compared to get the data each time from a database I started to clear the listview and reload it with a new set of columns each time in .NET......
This works good if your not loading more than 200-300 records and if you use the ListView.BeginUpdate and Listview.EndUpdate to get rid of flicker. (As I see it it's seldom good manner to fill a listview with alot more than 300 record anyway, because its to much for the user to scroll through).
I don't know if your filling it with data from a database at all, but maybe this helped anyway....
-
Dec 4th, 2002, 08:27 PM
#3
Thread Starter
Addicted Member
Originally posted by Athley
I often work with datasets that I display in listviews, and as that is so fast compared to get the data each time from a database I started to clear the listview and reload it with a new set of columns each time in .NET......
This works good if your not loading more than 200-300 records and if you use the ListView.BeginUpdate and Listview.EndUpdate to get rid of flicker. (As I see it it's seldom good manner to fill a listview with alot more than 300 record anyway, because its to much for the user to scroll through).
I don't know if your filling it with data from a database at all, but maybe this helped anyway....
No, Im not using a database but I did think of reloading the listview, would a collection be the best way to store the data?
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
|