I have a Web Image that I want to add to an ASP GridView. This is what I'm doing:
Image image = new Image();
image.ImageUrl = @"/_layouts/15/images/Project/x-mark-3-xxl.png";
row[course.CourseName] = image;
I get back the name of the object in the column. I'm doing a datatable and then binding it to the gridview, so the 'row' variable you see is obviously a row of the datatable. I need to show the image in the gridview. I did this a long time ago and I can't remember how I did it. And yes, it has to be by code.