Welcome Guest Search | Active Topics | Sign In | Register

Grid Image Custom Row... Options
ddurango
Posted: Friday, May 23, 2008 8:49:21 AM
Rank: Member
Groups: Member

Joined: 11/16/2007
Posts: 18
How can show an image instead of the value on a Grid. I tried the CustomColumn but not succed.
I'm binding the data on a Grid and one column has the value 'P' or 'C' instead I want to show a picture representing these values.

Thanks.
eo_support
Posted: Friday, May 23, 2008 10:27:46 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

I believe you can do that by using a StaticColumn and set the columns' DataFormat to something like this:

<img src="{0}" />

You data will be used to replace {0} and this would results in a standard img tag. This img tag will be displayed inside your Grid cell.

CustomColumn is more for custom editing support and it's much more complicated to use. So you probably don't want to waste too much time there :)

Thanks


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.