• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 277
  • Last Modified:

Listview update

Hi I'd like to be able to update the listview though I'd like to speed up the time that it takes.

I know that you can put something at the top of the code and then at the bottom though can't remember what that is, could anyone help me? is it update?
0
eNarc
Asked:
eNarc
1 Solution
 
twinsoftCommented:
Hi, yes you must use

ListView1.Items.BeginUpdate;
...
ListView1.Items.EndUpdate;

don't forget that a good practice is to enclose statements like these in a try..finally block

0
 
tigin44Commented:
is that

Application.DisableControls();

.....

Application.EnableControls();
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now