Solved

How to 'suppres' ListView display while processing

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

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…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

757 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

17 Experts available now in Live!

Get 1:1 Help Now