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 (listVie
int i=99;//is what row you want to select and focus listViewRamos.FocusedItem = listViewRamos.Items[0]; listViewRamos.Items[i].Selected = true; listViewRamos.Select(); listViewRamos.EnsureVisible(i);//This is the trick