Solved

How to 'suppres' ListView display while processing

Posted on 2011-03-18
2
339 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delphi TcxGrid group footer summary 3 317
select query - oracle 16 100
Sending files from  idTcpServer Socket to idTcpClient 2 44
DBCtrlGrid, Delphi, Scroll 8 38
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
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…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

828 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