Results 1 to 6 of 6

Thread: Reload listview data?

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2004
    Posts
    908

    Reload listview data?

    on a load form( with a listview) event, i am able to load data to the columns and when i click 'back' button i unload the form : ie
    frmxxx.show
    unload me
    ...

    and when i try to show the form (with the listview) again i could not retrieve the data.....why?

  2. #2
    Hyperactive Member
    Join Date
    Apr 2002
    Location
    UK
    Posts
    506
    Try using Me.Hide as apposed to Unload Me.

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2004
    Posts
    908
    though it works fine...but when the db is updated it would not show the latest update

  4. #4
    Member
    Join Date
    May 2004
    Posts
    36
    Yeah, I can't get my LV to reload either. Is there any method that will clear a listview so it can be reloaded again?

    Thanks,
    -Blake

  5. #5
    VB6, XHTML & CSS hobbyist Merri's Avatar
    Join Date
    Oct 2002
    Location
    Finland
    Posts
    6,654
    ListView1.ListItems.Clear I believe.

    Tip: set Visible = False while you are adding items to ListView, will speed up things a lot when you have a lot of items.

  6. #6
    Member
    Join Date
    May 2004
    Posts
    36
    Thanks merri, that worked great....

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