ObjectListView show icons

江枫思渺然 提交于 2019-11-30 22:12:32

In order for images to appear next to the text in a column, you must:

  1. Connect the ObjectListView to an ImageList (using the SmallImageList property);
  2. Install an ImageGetter delegate for the column that must show the images;
  3. Make sure that there are actually images in the 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?

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!