|
-
May 5th, 2002, 11:36 PM
#1
Thread Starter
Hyperactive Member
Highlight
In a listview how do we highlight a item in the list
-
May 5th, 2002, 11:39 PM
#2
PowerPoster
Click on it?

Thourgh code:
List1.ListItems(3).Selected = True (or something similar)
-----------------------------------------
-RJ
[email protected]
-----------------------------------------
-
May 5th, 2002, 11:43 PM
#3
Thread Starter
Hyperactive Member
need to show the first item highlighted with out clicking
say when u add a new item to the list
-
May 5th, 2002, 11:43 PM
#4
PowerPoster
List1.ListItems(0).Selected = True
?
-----------------------------------------
-RJ
[email protected]
-----------------------------------------
-
May 5th, 2002, 11:49 PM
#5
Thread Starter
Hyperactive Member
It is not working
I have a listview with sub items though...
-
May 5th, 2002, 11:51 PM
#6
PowerPoster
Oh, a listVIEW, OK.
Try...
ListView1.Item(0).Selected = True
or something like that.
?
-----------------------------------------
-RJ
[email protected]
-----------------------------------------
-
May 5th, 2002, 11:57 PM
#7
Thread Starter
Hyperactive Member
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...
Last edited by Janaka; May 6th, 2002 at 12:01 AM.
-
May 6th, 2002, 12:13 AM
#8
Thread Starter
Hyperactive Member
-
May 6th, 2002, 12:26 AM
#9
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|