I'm trying to select the first item in a ListView programmatically, but it doesn't appear to have been selected. I am using the following code:
if (listView1.Items.Count > 0)
listView1.Items[0].Selected = true;
Actually I've had this problem before but I can't remember how I managed to solve it!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…