Environment: Borland Developer Studio 2006
Problem: How force ListView to Refresh (Update) items, when they changed ?
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();or:Code:ListView->Refresh(); ListView->Update();
None of them works fine.. Do you have any other ideas, how can I force LV to refresh ? Please help me!Code:ListView->Items->Hide(); // ... // ...items' operations' // ... ListView->Items->Show();