Re: picture in data grid based on value

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Brian Henry (brianiupmsdn_at_newsgroups.nospam)
Date: 07/06/04


Date: Tue, 6 Jul 2004 15:15:56 -0400

yes, I know that but how would i do this in a data bound grid? i need to
pick which image will be displayed based off the value of the data column...
right now its just a numeric value read from a data bound column like this
<%#DataBinder.Eval(Container.DataItem,"Read")%> which ends up showing true
or false on the data grid because it's a bit value... i wanted to do
something like <img src='<%=
ImagePickFunction(DataBinder.Eval(Container.DataItem,"Read"))%> but that of
course does not work... how would i do this part of the problem? thanks