I am trying to add a List(Of T) to a Listview in Windows form application.But not able to do it.
I have made a form and took the value of textboxes in a list and trying to bind the list to ListView
Abhishek_12
0
Newbie Poster
Recommended Answers
Jump to PostYou can try writing a custom fill function:
Private Function Fill(ByVal lstIN As List(Of T)) As Boolean Try Dim lvi As New ListViewItem lvi.Text = lstIN(0) 'if index 0 is a unique - Column 1 lvi.SubItems.Add(lstIN(1)) 'Column 2 in listview lvi.SubItems.Add(lstIN(2)) 'Column 3 ListView1.Items.Add(lvi) Return True Catch …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.