ListView control, virtual mode, ListViewItems shown

V

Victor

Hi,
How to get a list of ListViewItems that are currently shown in a Windows
Form ListView control when that that control is in a virtual mode?
 
V

Victor

Sorry, I was confused by the message:

"When the ListView is in virtual mode, you cannot enumerate through the
ListView items collection using an enumerator or call GetEnumerator. Use the
ListView items indexer instead and access an item by index value.", but

ListView.ListViewItemCollection items = this.ListView1.Items;

just works fine.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top