Selected item? Possibility of subitems???VB.net

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • truezplaya
    New Member
    • Jul 2007
    • 115

    #1

    Selected item? Possibility of subitems???VB.net

    Hi
    I don't really have a problem as there are more than 1 way to do things in programming, i would just like to know if another way i am thinking is possible.

    I have a list view (listview1) with data in 5 columns

    When i double click i fire an event to find what i have clicked on.

    I was wondering is it possible to use the selecteditems.i tem to get the text in column 2 4 and 5. In other words the subitems. I have only ever retrieved selected items within the first column.
    [code]
    Car = carListView.Sel ectedItems.Item (3).SubItems.To String
    [code]
    This seems to give me an error.Am i on the right lines? any comments and input are hugely appreciated

    Truez
  • truezplaya
    New Member
    • Jul 2007
    • 115

    #2
    no problems i managed to figure it out, If any one is interested then this is the code
    Code:
     car = carListView.SelectedItems.Item(0).SubItems.Item(1).Text

    Comment

    Working...