How to add images to List View in C# 2005?

Posted by Anonymous June 16, 2008 - 2:28pm

Hi...I am Surendra Chaluvadi.I want to add Images to ListView.Is it possible to add images to List View?

Please forward the result if any body knows. surendra.chaluvadi@gmail.com. and Thanks in advance..

Posted by Anonymous September 4, 2008 - 6:50am

Yes it is possible to add images to the list view.First of all u take one Imagelist in the windows application. and add the images to the image list. then in the list view

try this code.

ListviewItem ObjLVI = new ListviewItem("Hello");
ObjLVI.StateImageIndex = 0;