In a listview how do we highlight a item in the list
Printable View
In a listview how do we highlight a item in the list
Click on it?
:confused:
Thourgh code:
List1.ListItems(3).Selected = True (or something similar)
need to show the first item highlighted with out clicking
say when u add a new item to the list
List1.ListItems(0).Selected = True
?
It is not working
I have a listview with sub items though...:confused: :confused:
Oh, a listVIEW, OK.
Try...
ListView1.Item(0).Selected = True
or something like that.
?
i did this and it works
VB Code:
lvwCateories.ListItems(1).Selected = True lvwCateories_Click
but the problem is the first item is not highlighted...:(
*bump*
The ListItems array is probably zero based then try:
VB Code:
lvwCateories.ListItems(0).Selected = True
Also make sure in the properties that HideSelection is set to False or unchecked.