Solved

How to 'suppres' ListView display while processing

Posted on 2011-03-18
2
341 Views
Last Modified: 2012-06-21
Hi, I'm making a stock analysis program and while in a loop, I'm writing the analysis results (thousands of individual records) to a TListView for display. It all works fine, but the TListView of course, constantly is being updated, refreshed and displayed with new entries while I'm going through the loop -I'm sure this must be slowing down processing. Is there some way I can still update my TListView, but 'suppress' the display of it until I'm done looping through all my 3500 stocks? Then go ahead and display everything?

Thanks
   Shawn
0
Comment
Question by:shawn226
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 32

Accepted Solution

by:
Ephraim Wangoya earned 50 total points
ID: 35168733

call begin and end update

  Listview1.Items.BeginUpdate;
  try
    //do your loading stuff here
  finally
      Listview1.Items.EndUpdate
  end;
0
 

Author Closing Comment

by:shawn226
ID: 35169198
Worked perfect, thanks!
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question