2010-09-30 83 views

回答

4

您必須直接在ListViewItem上設置Focused屬性。

因此,設置11行要聚焦:

this.lvVirtual.Items[10].Focused = true; 
+0

我曾試圖改變虛擬物品的圖標,這種方式沒有成功,然後停止使用'.Items'訪問虛擬物品。謝謝你的例子,爲我工作! :) – DxCK 2011-01-14 10:39:08

1

因爲已經說ListViewVirtualMode。此處不可訪問Items集合。

儘量擡高事件VirtualItemsSelectionRangeChanged

相關問題