Re: Explanation of ListView in virtual mode

Phil Sayers <[email protected]> Tue, 7 Aug 2007 10:04:20 -0400
Newsgroups gmane.comp.windows.devel.dotnet.winforms
Message-ID <[email protected]>
doh...sorry...i can't read today


-----Original Message-----
From: Discussion forum for developers using Windows Forms to build apps
and controls [mailto:[email protected]]On Behalf Of
Phil Sayers
Sent: Tuesday, August 07, 2007 10:01 AM
To: [email protected]
Subject: Re: [DOTNET-WINFORMS] Explanation of ListView in virtual mode


how many columns in your listview?


-----Original Message-----
From: Discussion forum for developers using Windows Forms to build apps
and controls [mailto:[email protected]]On Behalf Of
Richard Kucia
Sent: Tuesday, August 07, 2007 9:58 AM
To: [email protected]
Subject: [DOTNET-WINFORMS] Explanation of ListView in virtual mode


I am experimenting with the ListView in virtual mode. I have data for 64
rows and a visible area for 20 rows. The ListView has 9 columns.

The event handler that sends a ListViewItem includes a Debug.Writeline
statement, which I included just to see how .Net is invoking the event
handler. To my surprise, there's a very definite pattern. It invokes the
handler 12 consecutive times for item #0, then 12 consecutive times for item
#1, ..., down to item #19.

What's it doing? Why can't it just accept the item I returned upon the first
invocation?

Rick Kucia