CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2001
    Location
    Portugal
    Posts
    26

    ListView - Get Value in XRow/YCollumn

    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!
    End Sub



    Thks to all help...

    JPFO
    Portugal-Lisbon


  2. #2
    Join Date
    Apr 2001
    Location
    Portugal
    Posts
    26

    Re: ListView - Get Value in XRow/YCollumn

    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

Featured