By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,952 Members | 909 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,952 IT Pros & Developers. It's quick & easy.

Getting the value of selected item on the second column

lotus18
100+
P: 866
Hello World

It's me again. LOL, I know how to get the selected item on the second column of a listview.

Expand|Select|Wrap|Line Numbers
  1. frmCourses.lvwCourses.SelectedItem().SubItems(2)
But I don't know how to do it with vb .net. What I know is getting only the selected item of the first column. Hope you understand my problem

Waiting for your replies.

Rey Sean
Jun 1 '08 #1
Share this Question
Share on Google+
3 Replies


lotus18
100+
P: 866
Hellooooo

Can anyone tell me how to do it. Please. I badly need it. :'(

Rey Sean
Jun 3 '08 #2

Expert 100+
P: 487
You can select like
Expand|Select|Wrap|Line Numbers
  1. listView1.SelectedItems(index).Text
Jun 3 '08 #3

lotus18
100+
P: 866
You can select like
Expand|Select|Wrap|Line Numbers
  1. listView1.SelectedItems(index).Text
I have tried this code before but it fails me. But anyway I have came up with this code after a bit of exploring:

Expand|Select|Wrap|Line Numbers
  1. ListView1.SelectedItems(0).SubItems(1).Text
Thanks for your reply : )


Rey Sean
Jun 4 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.