speed of adding items to listview

  • Thread starter Thread starter Shishir Choudhary
  • Start date Start date
S

Shishir Choudhary

Hi All,

I have an application where I am adding around 100+ items
to listview. The problem is that adding this using the add
() method of listview takes 15 seconds. 15 seonds is a
long time to wait for a list to populate.

I was wondering if there is any way items could be added
faster ?

Regards
Shishir
 
Are you using the BeginUpdate() and EndUpdate() methods before and after
adding your items, this stops a number of events and redrawing occurring
while you populate the control.

Peter
 
Yes actually I am already using beginupdate and endupdate. That does
improve the speed. Is there any way to further improve the speed,
since 15 seconds for 100 items is very noticable loading time ?

One way I can think of is to avoid reloading the list.
 
is it me or is it a double-post? :-)

btw: maybe you are reading 100 items from database and this may take a
while?

maybe showing your code where you fill the list may help - 15 sec for 100
items is too long i think.

and tell us, which device you are using (iPaq with XScale? WM2003?
PPC2002?)

Boris
 
Back
Top