Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27531

Adding items to a listview

$
0
0
Sorry about this silly question but I haven't done any Winforms work or VB in ages.
I am looping through a collection and adding items to a listvew control with the following code:
Code:

For Each f As FDayResult In failedResults
            Dim item1 As New ListViewItem("lstItem")
            item1.SubItems.Add(f.QTY.ToString())
            item1.SubItems.Add(f.ProductCode)
            ListView1.Items.Add(item1)
        Next

All my listview shows is : item1 item1item1item1 in the horizontal.

Hmmmmmmm
I'm embaressed.

Viewing all articles
Browse latest Browse all 27531

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>