-
July 9th, 2012, 09:04 AM
#1
[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
-
July 11th, 2012, 09:22 AM
#2
Re: Move ListView Items to a Label
-
July 13th, 2012, 09:12 AM
#3
Re: Move ListView Items to a Label
-
July 13th, 2012, 07:25 PM
#4
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.
-
July 16th, 2012, 08:30 AM
#5
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|