Re: conditionally display icon in template column?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: djc (noone_at_nowhere.com)
Date: 12/13/04


Date: Mon, 13 Dec 2004 08:41:27 -0500

Thank you.

"Eliyahu Goldin" <removemeegoldin@monarchmed.com> wrote in message
news:Od8EQ8Q4EHA.3820@TK2MSFTNGP11.phx.gbl...
> In code-behind, ItemDataBound event. Over there you can access row cells,
> both for reading and writing.
>
> Eliyahu
>
> "djc" <noone@nowhere.com> wrote in message
> news:%23g4e4yQ4EHA.2676@TK2MSFTNGP12.phx.gbl...
> > I'm finishing up my first attempt at an asp.net app. I know this
question
> is
> > likely documented all over the place but I have a handful of things to
> > figure out in order to finish this up and now I'm under a time
> constraint...
> > so... I'm digging into a couple of things myself and posting a couple of
> > questions as well in order to get this done.
> >
> > I need to conditionally display an icon in a datagrid column. The icon
is
> > not the only item in the column. The column needs to display the data
from
> a
> > database field (string data) and then an icon after that data based on
the
> > data in another field.
> >
> > "data from field1" Icon1
> > "data from field1" Icon1
> > "data from field1" Icon2
> >
> > The condition in psuedo is like so:
> > -------------------------------
> > If field2 = "Value1" Then
> > show Icon1
> > ElseIf field2 = "Value2" Then
> > show Icon2
> > Else
> > Don't show any icon
> > ---------------------------------
> >
> > how/where would I do something like this? I really do hate asking things
> > that I know I can/should just lookup myself (like in Scott Mitchells
book
> on
> > the data controls) but right now I just need some quick answers.
> >
> > any info would be greatly appreciated. Thanks.
> >
> >
>
>



Relevant Pages

  • Re: conditionally display icon in template column?
    ... Eliyahu ... > I need to conditionally display an icon in a datagrid column. ... > database field and then an icon after that data based on the ...
    (microsoft.public.dotnet.framework.aspnet.datagridcontrol)
  • Re: Word sounds like it is continually running.
    ... > no matter what I do it takes for ever to show what I have done. ... the small icon that's writing is an indication that the automatic spell ... This reply is posted in the Newsgroup; please post any follow question or reply ...
    (microsoft.public.word.docmanagement)
  • Re: [Usability] Save Icon
    ... Subject: [Usability] Save Icon ... But they don't think of saving as 'writing' either. ...
    (GNOME)
  • Re: Soaring for Diamonds
    ... started gliding (and enjoying his writing) 3 years ago. ... He was an icon in Arizona soaring for quite some time. ... of the more senior rASArs can fill us in here. ...
    (rec.aviation.soaring)
  • Re: Hello World touchscreen-program
    ... I have been given an interesting assignment; ... My objective is to learn the building blocks of writing a touchscreen ... upon that icon. ...
    (comp.arch.embedded)