vb2005 listview

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shahrinn
    New Member
    • Feb 2007
    • 2

    vb2005 listview

    hi all,
    good to be a member of this forum,i'm new in vb.net previously i'm using vb6 can someone tell me how to save only selected data in listview for your info me select data using listview checkbox.

    thanks in advanced
  • Maira
    New Member
    • Feb 2007
    • 7

    #2
    hi,
    you need to get the index of the selected item in the listview
    Dim idx As Integer = Listview1.Selec tedItems(0).Ind ex
    and then get the information:
    Dim Info As String = Listview1.Items (idx).Text
    (here it's for the first column).
    Use for the other columns: Listview1.Items (idx).subitems( 1).Text
    Listview1.Items (idx).subitems( 2).Text

    Comment

    Working...