Results 1 to 2 of 2

Thread: ListView - Get text Row/Collumn

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2001
    Location
    Portugal- Europe
    Posts
    11

    ListView - Get text Row/Collumn

    hi,

    Help me on this one...

    I have a listview with checkboxes.
    I want to get the text of the Item.Index() in ColumnHeaders X.

    So...

    lets say that i have the Item.Index value in a string and i know what collumn i want to crosstable. Who can i get the field text in the listview?

    I have:
    Private Sub lstvwXXX_ItemCheck(ByVal Item As MSComctlLib.ListItem)
    sID = Item.Index() 'Get the Index checked
    sNIF = lstvwXXX.ColumnHeaders.Item(2) 'This is the collumn
    '???.... The text in sID in collumn sNIF....blrrrrrrrr!

    Thks to all help...

    JPFO
    Portugal-Lisbon

  2. #2

    Thread Starter
    New Member
    Join Date
    Jul 2001
    Location
    Portugal- Europe
    Posts
    11

    Got it!

    done! No help needed this time...

    Private Sub ltvFacturas_ItemCheck(ByVal Item As MSComctlLib.ListItem)
    Dim sIDx As Integer
    sIDx = Item.Index()
    sVal = ltvFacturas.ListItems.Item(sIDx).SubItems(1)
    End sub

    sVal = value in checked index in collumn Y

    JPFO
    Lisbon - Portugal

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