listview event handling

A

a

Hi

I have a 3-column listview. It has to return the value of the cell when the
user click the listview.
The SelectedIndexChanged event and ItemSelectionChanged Event only return
the row information (ListViewItem).
If I want to return the cell value of the second and the third column, which
event should I use?

Thanks
 
A

AlexS

To get subitems of selected item in listview you can use
ListViewItem.SubItems property. Subitems[1] and [2] should give you required
values.
 
A

a

AlexS said:
To get subitems of selected item in listview you can use
ListViewItem.SubItems property. Subitems[1] and [2] should give you required
values.


a said:
Hi

I have a 3-column listview. It has to return the value of the cell when
the
user click the listview.
The SelectedIndexChanged event and ItemSelectionChanged Event only return
the row information (ListViewItem).
If I want to return the cell value of the second and the third column,
which
event should I use?

Thanks
Thanks for your reply.
You are right in terms of programming.
But, let say, if the user select row 2, column 2, which event handling
procedure should be used to return the value of the cell (2,2)?
Or, it is also fine, if the event handling procedure is able to return the
co-ordinate of the selected cell.

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top