[RESOLVED] Move ListView Items to a Label
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Thread: [RESOLVED] Move ListView Items to a Label

Hybrid View

  1. #1
    Join Date
    Jul 2012
    Posts
    46

    [RESOLVED] Move ListView Items to a Label

    I've tried looking this up but nobody has a tutorial that clears this issue up for me.

    I have a listview containing 3 columns and an infinite number of rows. I would like to (on btn_click) add all items from a this ListView to a Label. Here's the catch...I would like to check these items against the items in a database and pull some more information about these parts along with the info that is already in the ListView. Here is my current ListView work so you get an idea of what I'm doing:

    'Add PLC Part to the PLC ListView
    Private Sub btnAddtoPLCTable_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAddtoPLCTable.Click
    ' Create List View Item (Row)
    Dim lvi As New ListViewItem

    ' First Column can be the listview item's Text
    lvi.Text = cboPLCPartNumber.Text

    ' Second Column is the first sub item
    lvi.SubItems.Add(txtPLCDescription.Text)

    ' Third Column is the second sub item
    lvi.SubItems.Add(spnPLCQty.Text)

    ' Add the ListViewItem to the ListView
    PLCTableList.Items.Add(lvi)

    End Sub


    Thank you in advance for any help you may offer

  2. #2
    Join Date
    Jul 2012
    Posts
    46

    Re: Move ListView Items to a Label

    Please Help!

  3. #3
    Join Date
    Jul 2012
    Posts
    46

    Re: Move ListView Items to a Label

    Bump

  4. #4
    DataMiser is online now Super Moderator Power Poster
    Join Date
    Jul 2008
    Location
    WV
    Posts
    4,813

    Re: [RESOLVED] Move ListView Items to a Label

    Why is your thread marked resolved if you are still looking for help?
    Always use [code][/code] tags when posting code.

  5. #5
    Join Date
    Jul 2012
    Posts
    46

    Re: [RESOLVED] Move ListView Items to a Label

    I apologize for that but I decided to make a new thread explaining my situation better. The new thread also has some updates. I was hoping somebody would be willing to help if they had more information about the issue and the issue wasn't as large.

    Thanks

Tags for this Thread

Posting Permissions

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


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center