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.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,218
|
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
|