Print Page | Close Window

Listview 11.2 load data slow

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Suite Pro
Forum Description: Topics Related to Codejock Suite Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=8096
Printed Date: 01 February 2025 at 9:45am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Listview 11.2 load data slow
Posted By: BCSVR
Subject: Listview 11.2 load data slow
Date Posted: 20 September 2007 at 4:38am
Listview very slow to load data, and ms listview comparison, the efficiency of its 1 / 2



Replies:
Posted By: Oleg
Date Posted: 21 September 2007 at 1:54am
Hello,
 
You are right, thanks, we will check what can be done.
 
If you populate data in some loop you can send WM_SETREDRAW message to stop redrawing on each step. It can increase perfomance:
 
 
Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
Const WM_SETREDRAW = &HB
 
 
SendMessage ListView1.hwnd, WM_SETREDRAW, 0, 0
For i = 1 To 10000
ListView1.ListItems.Add , , Item & i
Next
SendMessage ListView1.hwnd, WM_SETREDRAW, 1, 0
 


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net