[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!
Re: [2005] Listview Misbehaving
Call ListView.BeginUpdate before you start loading it and call ListView.EndUpdate when you're done loading it.
Re: [2005] Listview Misbehaving
Very cool. That fixed it! Thanks. Any hints as to how to find stuff like this out?
Re: [RESOLVED] [2005] Listview Misbehaving
Quote:
Very cool. That fixed it! Thanks. Any hints as to how to find stuff like this out?
Sleep with this by your bedside. :bigyello:
http://www.msdn.com
Re: [RESOLVED] [2005] Listview Misbehaving
LOL. I'll print it out tonight!:bigyello: