listview problem
-
Saturday, April 28, 2012 2:48 PM
1. How to add item into certain column??Let say i want add item into column 2.
ListView1.Items(i).SubItems(2)????
2. I want to add an image into listview n view in detail style..How can i do??
ListView1.Items.Add(filename, 0)
ListView1.View=View.Details
All Replies
-
Saturday, April 28, 2012 3:10 PM
The First column of the List View is the ListView1.Items(i).Text
The second column is ListView1.Items(i).SubItems(1) the third column is ListView1.Items(i).SubItems(2) etc...
To add the image, it is more than what you wrote, check this post it will guide step by step:
http://social.msdn.microsoft.com/Forums/ar/winforms/thread/876b6517-7306-44b0-88df-caebf3b1c10f
Ali Hamdar (alihamdar.com - www.ids.com.lb)
- Proposed As Answer by Shanks ZenMicrosoft Contingent Staff, Moderator Wednesday, May 02, 2012 6:28 AM
- Marked As Answer by Shanks ZenMicrosoft Contingent Staff, Moderator Tuesday, May 08, 2012 2:28 AM
-
Monday, April 30, 2012 12:49 PM
Hi,
Add image list in your project and set Image list property of list view. then call image index for each row.

