System.Windows.Forms.ListView.CacheVirtualItems Event

Occurs when the contents of the display area for a System.Windows.Forms.ListView in virtual mode has changed, and the System.Windows.Forms.ListView determines that a new range of items is needed.


public event CacheVirtualItemsEventHandler CacheVirtualItems


This event only occurs when ListView.VirtualMode is true. Handling this event allows the System.Windows.Forms.ListView to update the item information held in the cache so that it is readily available. This can improve performance on large lists, or lists whose items are expensive to calculate.

For more information about handling events, see Consuming Events.


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