I have a listview control, to this control I am adding rows which contain image data, filename, position (its taken at a point in a 4 dimensional matrix), time taken. To make things nice I want to add a 'delete' icon to my fourth column so the user can review the image and decide whether to keep it or not, how do I add an image/icon to that 4th cell in each row?
public void addItemToImageListview(string details, string timestamp)
{
string reftype = (!exp_image_radiobtn.Checked) ? "Ref" : "Data";
ListViewItem lvi = new ListViewItem();
if (details.Contains("[ERROR]"))
{
reftype = "[ERROR]";
details = details.Substring(0, details.IndexOf("[ERROR]"));
}
lvi.Text = details;
lvi.SubItems.Add(reftype);
lvi.SubItems.Add(timestamp);
lvi.SubItems.Add(image icon?);
I have looked through Google but a lot of stuff is old...
As Aren asked, this is a winforms app, c#, 3.5.