I have a need to change the image (bound) in a gridview after it has been databound. Basically i need to assign a photo to a record and I want to change the image url for that row. I can change the text in any of the cells of the row but I can't seem to find property for the imageurl.
This is what I do to change the text(cell 5).
int index = int.Parse(Session["NSI"].ToString());
GridViewRow row1 = GridView1.Rows[index];
row1.Cells.Text = "just some text";
But now I need to change the image url for cell 0
something along the lines of ...
row1.Cells.ImageUrl = "~images\photos\12345.jpg";
How do I get to that property?
View Complete Post