PDA

Click to See Complete Forum and Search --> : How to return the value of a cell in ListView control?


Cygnus
Nov 16th, 2001, 10:16 AM
Hello folks;

I have a question about the ListView control:
How can I get the contents of a certain cell?

For example: the value of variable “a” should be compared with all cells which are in the third column “ThrirdRow” of Listview “show”.

How can I – in my code – refer to the contents of the first cell in that third row? Does Listview use some kind of coordinates to return the value of a certain cell?

Many thanks in advance;
Cygnus

jim mcnamara
Nov 16th, 2001, 10:47 AM
Lview.ListItems(3).Subitems(1)

This is the third colum first row in that column.

The columns are called a ListItem, and are in a collection called ListItems. Each ListItem has SubItems.

Cygnus
Nov 16th, 2001, 11:42 AM
Thanks you for your quick reply!