Results 1 to 5 of 5

Thread: [RESOLVED] [2005] Listview Misbehaving

  1. #1

    Thread Starter
    Hyperactive Member rjbudz's Avatar
    Join Date
    Jul 2005
    Location
    San Diego
    Posts
    262

    Resolved [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!

  2. #2
    PowerPoster stanav's Avatar
    Join Date
    Jul 2006
    Location
    Providence, RI - USA
    Posts
    9,290

    Re: [2005] Listview Misbehaving

    Call ListView.BeginUpdate before you start loading it and call ListView.EndUpdate when you're done loading it.

  3. #3

    Thread Starter
    Hyperactive Member rjbudz's Avatar
    Join Date
    Jul 2005
    Location
    San Diego
    Posts
    262

    Re: [2005] Listview Misbehaving

    Very cool. That fixed it! Thanks. Any hints as to how to find stuff like this out?

  4. #4
    Registered User nmadd's Avatar
    Join Date
    Jun 2007
    Location
    U.S.A.
    Posts
    1,676

    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

  5. #5

    Thread Starter
    Hyperactive Member rjbudz's Avatar
    Join Date
    Jul 2005
    Location
    San Diego
    Posts
    262

    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
  •  



Click Here to Expand Forum to Full Width