Dear Friends,
Could you please let me know the code to get 3 columns in a ListView?
Thanks.
Printable View
Dear Friends,
Could you please let me know the code to get 3 columns in a ListView?
Thanks.
What? We need to know what you mean. Your question is vague.
Are you asking how to add data to the ListView and then give each item three additional sub items? Or are you asking how to create additional columns?
Or something else?
With nearly 500 posts, you should be at the point where you can look for these things for yourself first, then ask questions about the bits that give you problems.
http://msdn.microsoft.com/en-us/libr....listview.aspx
Thanks. I got the answer. Now another question, How can I show the listview selected data in the respective textboxes? The following code doesn't work for this purpose. Moreover, I have three columns in listview.
ThanksCode:Private Sub lVW_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles LVW.Click
With LVW
Me.Text = .SelectedItems.Item(0).Text
LVW.Tag = CStr(.SelectedItems.Item(0).Text)
End With
End Sub