WinForm中ListView研究及以一个以太网实时监视Demon

本文探讨了在WinForm中如何利用ListView的VirtualMode属性实现虚拟模式,以提高处理大量数据的效率。在虚拟模式下,ListViewItem对象动态创建,仅在需要时生成。必须处理RetrieveVirtualItem事件,设置VirtualListSize属性,并可以选择处理CacheVirtualItems事件以维护缓存。此外,介绍了如何结合以太网数据,通过定时器和自定义ListView派生类实现以太网实时监控。
摘要由CSDN通过智能技术生成

 “Setting the VirtualMode property to true puts the ListView into virtual mode. In Virtual mode, the normal Items collection is unused. Instead, ListViewItem objects are created dynamically as the ListView requires them.

Virtual mode can be usefulunder many circumstances. If aListView object must be populated from a very large collection already inmemory, creating aListViewItem object for each entry can be wasteful. In virtual mode, only theitems required are created. In other cases, the values of theListViewItem objects may need to be recalculated frequently, and

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值