Results 1 to 7 of 7

Thread: Listview...

Hybrid View

  1. #1

    Thread Starter
    ^:^...ANGEL...^:^ wrack's Avatar
    Join Date
    Mar 2002
    Location
    Melbourne, AUSTRALIA
    Posts
    2,695

    Thumbs up Listview...

    I have a listview control in one of my form and when user clicks on one of the item in listview...I need to show all the details in that row...

    for example my listview contains ISBN, BookName, Author in 3 coloums...when user clicks on one item I need to pop a message box telling bookname and author...

    Cheers...

  2. #2
    Let me in .. techyspecy's Avatar
    Join Date
    Aug 2002
    Location
    Back to VBF.
    Posts
    2,456
    So whats the problem ?????


  3. #3
    Addicted Member
    Join Date
    Sep 2002
    Location
    India
    Posts
    151

    Simple

    If u use databse and keys for books table. Assing the key value to listitems.on itemclik evnt fecth it from databse the detsils u need.
    Variety is the spice of life

  4. #4

    Thread Starter
    ^:^...ANGEL...^:^ wrack's Avatar
    Join Date
    Mar 2002
    Location
    Melbourne, AUSTRALIA
    Posts
    2,695
    Originally posted by techyspecy
    So whats the problem ?????

    I forgot how to grab info from colums...

    Like when user clicks on the ROW I need to grab all the info in it and display in message box...

  5. #5
    Addicted Member
    Join Date
    Sep 2002
    Location
    India
    Posts
    151
    "I need to grab all the info" where u have stored this and as wha t u have stored??
    Variety is the spice of life

  6. #6

  7. #7

    Thread Starter
    ^:^...ANGEL...^:^ wrack's Avatar
    Join Date
    Mar 2002
    Location
    Melbourne, AUSTRALIA
    Posts
    2,695

    Thumbs up

    Originally posted by Wokawidget
    Use:
    VB Code:
    1. MsgBox ListView1.ListItems.Item(1).SubItems(1) 'Col 1 or listitem 1
    2. 'or
    3. MsgBox ListView1.ListItems.Item(1).ListSubItems.Item(1) 'Col 1 or listitem
    Woka
    Ta M8...appreciate your help...

    Cheers...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width