Trying to put icons in ObjectListview, here\'s my piece of code where icon should have been put:
objectListView1.SmallImageList = imageList1;
delete
In order for images to appear next to the text in a column, you must:
ObjectListView
to an ImageList
(using the SmallImageList
property);ImageGetter
delegate for the column that must show the images;ImageList
.With this done, images will appear (I just tested this).
There is one catch, though. From your question, I suspect that the "Delete" column may not be the first column in the ObjectListView
. The above steps only allow you to show an image in the very first column. For subsequent columns, you will have to set the ShowImagesOnSubItems
property to True. Could that be it?