Getting the value of selected item on the second column

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lotus18
    Contributor
    • Nov 2007
    • 865

    Getting the value of selected item on the second column

    Hello World

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

    [CODE=vb]frmCourses.lvwC ourses.Selected Item().SubItems (2)[/CODE]

    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
  • lotus18
    Contributor
    • Nov 2007
    • 865

    #2
    Hellooooo

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

    Rey Sean

    Comment

    • CyberSoftHari
      Recognized Expert Contributor
      • Sep 2007
      • 488

      #3
      You can select like
      Code:
      listView1.SelectedItems(index).Text

      Comment

      • lotus18
        Contributor
        • Nov 2007
        • 865

        #4
        Originally posted by CyberSoftHari
        You can select like
        Code:
        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:

        [CODE=vb .net]ListView1.Selec tedItems(0).Sub Items(1).Text[/CODE]

        Thanks for your reply : )


        Rey Sean

        Comment

        Working...