C# Virtual List View in WinForms

十年热恋 提交于 2019-12-16 18:05:07

问题


I am new to a virtual list item and how it works. Can you explain the uses and when it is appropriate to use. Can it be used with word document text files, excel document? How does it pull the information and is there any samples that would be useful with a List Item: Detail Mode? I have no clue how to start the program any help is appreciated.


回答1:


Basically the virtual list control lets you have a listbox with a very large number of items in it but only load a subset of the data into memory. As the user scrolls through the list and exhausts the items in memory then the list control loads more data:

http://msdn.microsoft.com/en-us/library/ye4z8x58.aspx

The .NET version is implemented with the 'VirtualMode' property of the ListView control. When this is set to true it will act as a virtual list. Your code handles the "RetrieveVirtualItem" event to load more data into the list view as the virtual list's items are exhausted:

http://msdn.microsoft.com/en-us/library/system.windows.forms.listview.virtualmode(v=vs.110).aspx



来源:https://stackoverflow.com/questions/24195868/c-sharp-virtual-list-view-in-winforms

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!