System.Windows.Forms.ListView.RetrieveVirtualItem Event

Occurs when the System.Windows.Forms.ListView is in virtual mode and requires a System.Windows.Forms.ListViewItem.

Syntax

public event RetrieveVirtualItemEventHandler RetrieveVirtualItem

Remarks

When a System.Windows.Forms.ListView object is in virtual mode, it creates System.Windows.Forms.ListViewItem objects dynamically instead of using the ListView.Items collection. This event is raised when the object must create a System.Windows.Forms.ListViewItem object. A handler for this event should create the appropriate System.Windows.Forms.ListViewItem or retrieve it from the cache, and pass it back by way of the RetrieveVirtualItemEventArgs.Item property.

For more information about handling events, see Consuming Events.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0