|
-
Apr 8th, 2003, 02:58 PM
#1
Thread Starter
Addicted Member
ListView problem, how to know which data is selected
hi, i have tested the listview the first time.
and i wonder how i can get the index of the selected item.
the listview has 2 columns, and some entrys as rows
how can i get the index number of the selected row
(multiselect is false)
these don't work:
Code:
ListView1.ListItems.Item.Index
ListView1.Index
#
thx for your time
pa
Old enough to know better,
but young enough to don't give a ****!
-
Apr 8th, 2003, 03:12 PM
#2
Frenzied Member
VB Code:
Option Explicit
Dim CurrentItem As ListItem
Private Sub ListView1_ItemClick(ByVal Item As MSComctlLib.ListItem)
Set CurrentItem = Item
End Sub
-
Apr 8th, 2003, 03:48 PM
#3
The ListView has a SelectedItem property.
-
Apr 8th, 2003, 04:05 PM
#4
Addicted Member
VB Code:
ListView1.SelectedItem.Index
-
Apr 9th, 2003, 10:54 AM
#5
Thread Starter
Addicted Member
thanks, now it is working fine
greez pa
Old enough to know better,
but young enough to don't give a ****!
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
|