My Listview is a detail view setting with the following column headings:
Image Title || Image || Image Size || Image Preview
I would like to know if there is a way to draw an image in the 4th column. The only way I know is to install
this.listview1.OwnerDraw = true
this.listView1.DrawColumnHeader += new System.Windows.Forms.DrawListViewColumnHeaderEventHandler(listView1_DrawColumnHeader);
this.listView1.DrawItem += new System.Windows.Forms.DrawListViewItemEventHandler(listView1_DrawItem);
this.listView1.DrawSubItem += new System.Windows.Forms.DrawListViewSubItemEventHandler(listView1_DrawSubItem);
The problem with this is that I have to handle ALL the listview drawing myself ... I was wondering if there is a better way to draw an image in subItem, or if there is a way to handle the DrawSubItem event?
Cory
source
share