Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Retrieve text data from listview item's 3rd column cell

Status
Not open for further replies.

jbsys

Programmer
May 6, 2005
51
CA
Hi;
I'm not sure about how I can retrieve the information from a listitem's 3rd column cell. EG:
____________________________
|Col 1 |Col 2 | Col 3 |
----------------------------
| Red | Blue | Green |
----------------------------
|Purple | Yellow| Magenta|
----------------------------
|White |Orange | Black |
----------------------------
| Red |Pearl | Cherry |
----------------------------

In order to retrieve the value "Black", in row 3 col3, I suppose I could use the old-fashioned method and loop through the columns of each row, but is there an easier way?

Thanks
jbsys
 
Looping through is the fastest way. If you want to speed up the process, try sorting the list by that column first and then do a fancy search. Good luck with that though :D

I'm currently looping through over 1000 list view items looking for values in the 4th column and it's quick.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top