Thread: ListView Refresh, Update

  1. #1
    Registered User
    Join Date
    May 2006
    Posts
    3

    Question ListView Refresh, Update

    Hello,

    Environment: Borland Developer Studio 2006
    Problem: How force ListView to Refresh (Update) items, when they changed ?

    Description:
    I've got two Forms: mainFrm with ListView [vsReport] on it and newFrm with a Button and some Edits. When user click on button, ListView items take values from newFrm's Edits. Everything works fine for the first time, but when I change values in Edits and click on a button, ListView show me previously data. It looks like LV can't refresh (update) itself.

    I tried the following solutions:
    Code:
    ListView->Items->BeginUpdate();
    // ...
    // ...items' operations
    // ...
    ListView->Items->EndUpdate();
    Code:
    ListView->Refresh();
    ListView->Update();
    or:

    Code:
    ListView->Items->Hide();
    // ...
    // ...items' operations'
    // ...
    ListView->Items->Show();
    None of them works fine.. Do you have any other ideas, how can I force LV to refresh ? Please help me!

  2. #2
    Registered User
    Join Date
    May 2006
    Posts
    3
    I am sorry for confusion -problem is now solved:

    Code:
    mainFrm->ListView->Items->Item[i]->SubItems->Clear();

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Polymorphism; Update functions and accessibility
    By CaptainMaxxPow in forum C# Programming
    Replies: 2
    Last Post: 04-23-2009, 08:48 AM
  2. SQLite not performing update
    By OnionKnight in forum C Programming
    Replies: 0
    Last Post: 01-21-2009, 04:21 PM
  3. Troubles with ListView and Toolbar
    By cornholio in forum Windows Programming
    Replies: 8
    Last Post: 11-14-2005, 01:26 AM
  4. curses problem
    By rajesh23 in forum Linux Programming
    Replies: 2
    Last Post: 10-07-2003, 07:27 AM
  5. Listview??
    By SuperNewbie in forum C# Programming
    Replies: 4
    Last Post: 02-13-2003, 03:34 AM