Why the Items of a Virtual ListView that are not visible don't have index?
问题 I'm working with a ListView in Virtual Mode (.NET 4.6). I tried to find the index of Items in the virtual ListView: when I enter a letter, the first item with text that start with that letter should be selected. Here is the FindItemWithText in listView1_KeyDown : if (char.IsLetterOrDigit(e.KeyChar)) { var str = e.KeyChar.ToString(); if (tempStr != str) { Index = 0; tempStr = str; } var item = listView1.FindItemWithText(str, false, Index, true); if (item != null) { item.Selected = true; item