Last post Jun 13, 2011 01:04 AM by Raigad
Jun 13, 2011 12:19 AM|mljoannou|LINK
Im very new to all of this (development in general)...
I have created a database with various columns , one being an ImageName column that stores the filename of uploaded files against a users credentials...
Is there a way to display the image for that row in the database in the WebImage grid?
Jun 13, 2011 12:57 AM|mljoannou|LINK
Ok all I figured this out, just struggled to see how the usual img syntax would fit into the webgrid helper
I used: grid.Column(format: @<img src="@Href("~/images/thumbs/" + @item.ImageName)"/>),
Works a charm for a start :P
Jun 13, 2011 01:04 AM|Raigad|LINK
You can add any control in template column at runtime in GridView_RowDatabound event
Or refer this urls