?
Solved

How to 'suppres' ListView display while processing

Posted on 2011-03-18
2
Medium Priority
?
349 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
2 Comments
 
LVL 32

Accepted Solution

by:
Ephraim Wangoya earned 200 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses
Course of the Month17 days, 9 hours left to enroll

830 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