Solved

How to 'suppres' ListView display while processing

Posted on 2011-03-18
2
337 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:
ewangoya 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

867 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now