View Single Post
Old 02-18-2006, 06:41 AM   #2 (permalink)
rikb53
Registered User
 
Join Date: Jan 2006
Posts: 29
rikb53 is on a distinguished road
Solved it by mixing in a Template Column,Using a asp:image
and then passing the string path based on a sql case statement. then the string returned is the path of the image.

<asp:TemplateColumn HeaderText="IsEnabled">
<ItemTemplate>
<asp:image Runat="server" ImageUrl='<%# DataBinder.Eval(Container.DataItem, "EnabledImg") %>' >
</asp:image>
</ItemTemplate>
</asp:TemplateColumn>
rikb53 is offline   Reply With Quote