|
|
Title | Set the selected item in a ListView control |
Keywords | ListView, selected item |
Categories | Controls |
|
|
Find the item you want to select in the control's ListItems collection.
Then set the control's SelectedItem property to that item as in:
|
|
' Select the 2nd item.
ListView1.SelectedItem = ListView1.ListItems(2)
|
|
|
|
|
|