|
-
Jul 18th, 2007, 12:32 PM
#1
Thread Starter
Hyperactive Member
[RESOLVED] [2005] Listview Misbehaving
I'm using an unbound Listview control that I fill based on search criteria. I've a couple of issues I would like to resolve.
1) Since I'm looping through over 2000 text files to find instances of a search string, it takes a while to load the listview. Is there a way to prevent the display from refreshing during the load? (the scroll bar shows up and the thumb thingy shrinks as it loads, but no data or row lines are displayed). On the classic MSGFlexGrid, Refresh was a boolean setting. Something like that?
2) When it does finish loading, all the lines around the cells appear. However, when I scroll the listview, the horizontal lines disappear. Why would it do that and how do I fix it?
Thanks!
-
Jul 18th, 2007, 01:02 PM
#2
Re: [2005] Listview Misbehaving
Call ListView.BeginUpdate before you start loading it and call ListView.EndUpdate when you're done loading it.
-
Jul 18th, 2007, 01:08 PM
#3
Thread Starter
Hyperactive Member
Re: [2005] Listview Misbehaving
Very cool. That fixed it! Thanks. Any hints as to how to find stuff like this out?
-
Jul 18th, 2007, 01:12 PM
#4
Re: [RESOLVED] [2005] Listview Misbehaving
Very cool. That fixed it! Thanks. Any hints as to how to find stuff like this out?
Sleep with this by your bedside.
http://www.msdn.com
-
Jul 18th, 2007, 01:40 PM
#5
Thread Starter
Hyperactive Member
Re: [RESOLVED] [2005] Listview Misbehaving
LOL. I'll print it out tonight!
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
|