Re: conditionally display icon in template column?
From: djc (noone_at_nowhere.com)
Date: 12/13/04
- Next message: djc: "Re: conditionally display icon in template column?"
- Previous message: Eliyahu Goldin: "Re: conditionally display icon in template column?"
- In reply to: Eliyahu Goldin: "Re: conditionally display icon in template column?"
- Messages sorted by: [ date ] [ thread ]
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.
> >
> >
>
>
- Next message: djc: "Re: conditionally display icon in template column?"
- Previous message: Eliyahu Goldin: "Re: conditionally display icon in template column?"
- In reply to: Eliyahu Goldin: "Re: conditionally display icon in template column?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|