cehrnow
asked on
gridview display image
Have programtically (intentionally) set up a gridview to display data from an XML dataset. Works fine expect when trying to display images in a column using following technique:
dcol = New DataColumn("AnImage", GetType(ImageField))
dcol = New DataColumn("AnImageURL", GetType(String))
drow("AnImage") = New ImageField
drow("AnImage").DataImageU rlField = "AnImageURL"
drow("AnImageURL") = "image/picture.jpg"
Column just displays "ImageField". Any thoughts please ?
dcol = New DataColumn("AnImage", GetType(ImageField))
dcol = New DataColumn("AnImageURL", GetType(String))
drow("AnImage") = New ImageField
drow("AnImage").DataImageU
drow("AnImageURL") = "image/picture.jpg"
Column just displays "ImageField". Any thoughts please ?
ASKER
Thanks. Any chance you could show the code ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I see what you mean. Now reluctantly decided to use bound fields setup within design mode.
Thanks
Thanks
In this template field add HtmlImage and assign its src the image path.