ListView can't see column text

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Lilian Hughes
    New Member
    • Mar 2010
    • 1

    #1

    ListView can't see column text

    Hi,

    Does anyone know how to add values in Listview?

    I've create a listview, I have 4 columns. When I run my program, I can see the columns header but can't see my data. I added this code:

    Dim lstStuff As New ListViewItem

    lstStuff.Text = "First column output"
    lstStuff.SubIte ms.Add("Second column output")
    lstStuff.SubIte ms.Add("3rd column output")
    lstStuff.SubIte ms.Add("4th column output")
    lvwMyListView.I tems.Add(lstStu ff)

    lstStuff = Nothing

    I can't see where I did wrong. Please Help! Thanks!
  • tlhintoq
    Recognized Expert Specialist
    • Mar 2008
    • 3532

    #2
    TIP: When you are writing your question, there is a button on the tool bar that wraps the [code] tags around your copy/pasted code. It helps a bunch. Its the button with a '#' on it. More on tags. They're cool. Check'em out.


    A good first place to look is always the MSDN
    http://msdn.microsoft.com/en-us/libr...iew.items.aspx

    Comment

    Working...