first you should find control in row command...
protected void gvUserInfo_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
Image img= (Image)e.Row.FindControl("image1");
var Data=from p in p.TableName
select p;
img.ImageUrl=Data.first().ImageColumnName;
}
}