How to fill ListView in background

  • Thread starter Thread starter chora
  • Start date Start date
C

chora

I have a ListView that has to be populated with 2-3000 rows.

Although getting data into the dataset is fast, filling the ListView
takes too long.

I thought of displaying the first (visible) portion of Listview, give
control to the user and continue filling the ListView in the
background.

What is the best way to do this?
 
And be sure to use Control.Invoke to update the listview from this 2nd
thread.

-Katie

This posting is provided "AS IS" with no warranties, and confers no rights.

***.Net Compact Framework Info***
Faq:
http://msdn.microsoft.com/mobility/prodtechinfo/devtools/netcf/FAQ/default.a
spx
QuickStarts: http://samples.gotdotnet.com/quickstart/CompactFramework/
Samples:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetcomp/h
tml/CompactfxTechArt.asp

--------------------
| From: Jack Ripper <[email protected]>
| References: <#[email protected]>
| X-Newsreader: AspNNTP 1.50 (ActionJackson.com)
| Subject: Re: How to fill ListView in background
| Mime-Version: 1.0
| Content-Type: text/plain; charset="us-ascii"
| Content-Transfer-Encoding: 7bit
| Message-ID: <[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| Date: Mon, 12 Jan 2004 07:27:19 -0800
| NNTP-Posting-Host: actionjackson133.dsl.frii.net 216.17.147.133
| Lines: 1
| Path:
cpmsftngxa07.phx.gbl!cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP11.
phx.gbl
| Xref: cpmsftngxa07.phx.gbl
microsoft.public.dotnet.framework.compactframework:42759
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
|
|
| Try a second thread.
|
|
| Don't just participate in USENET...get rewarded for it!
|
 
Back
Top