Link to home
Start Free TrialLog in
Avatar of jexd99
jexd99

asked on

Selecting with Listview


If I have a listview with 10 rows (items) listed in it, with an image on every row, and 4 columns across, how can I get the item number when the user clicks on any column or image. For example, if listview has columns named
field 1, field 2, field 3, and field 4, and they double click the field 4, the 3rd row from the top, I want to know that item[2] was chosen (starts at 0, so the 3rd row is item[2]).  In other words I'm trying to determine what row the user clicked no matter where he clicks.

         Thanks    
ASKER CERTIFIED SOLUTION
Avatar of Slavak
Slavak

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of comptebidon81
comptebidon81

And set RowSelect to True...

GunDamn
Avatar of jexd99

ASKER

Wow that was easy, I'm embarassed to say how long I spent trying to figure this one out! :-)