Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: Data list


Message #1 by "GoToDotNet" <srikieat@y...> on Fri, 21 Feb 2003 03:18:42
Dear Developer,
I am very new in aspx and I have some question to ask you guys.

I would like to use datalist control to display my data. The data is about the 
expense of the company. I would like to show red color when that number is 
negative and black in the other hand. How could I do this ?

Thanks in advance
Srikieat
Message #2 by "Rohit Arora" <rohit_arora@i...> on Fri, 21 Feb 2003 16:02:25 +0530
set the backgroundcolor property as u wish.

Regards
Rohit Arora
Intersolutions (P) Ltd
B - 21, Sector 58,
Noida - 201301
Tel : 91-2585703/04/05 Extn: 229


-----Original Message-----
From: GoToDotNet [mailto:srikieat@y...]
Sent: Friday, February 21, 2003 3:19 AM
To: ASP.NET
Subject: [aspx] Data list


Dear Developer,
I am very new in aspx and I have some question to ask you guys.

I would like to use datalist control to display my data. The data is about
the
expense of the company. I would like to show red color when that number is
negative and black in the other hand. How could I do this ?

Thanks in advance
Srikieat

Message #3 by "Rahul Singh" <rahul.singh@a...> on Fri, 21 Feb 2003 07:41:00 -0500
Try using a datagrid. ( you might be able to do the same in datalist).
Modify the ItemTemplate for that datalist/grid and put custom code there to
do the check.

Rahul
Anant Systems, Inc.
http://www.anantsystems.net
1877ANANTCOx1
----- Original Message -----
From: "GoToDotNet" <srikieat@y...>
To: "ASP.NET" <aspx@p...>
Sent: Friday, February 21, 2003 3:18 AM
Subject: [aspx] Data list


> Dear Developer,
> I am very new in aspx and I have some question to ask you guys.
>
> I would like to use datalist control to display my data. The data is about
the
> expense of the company. I would like to show red color when that number is
> negative and black in the other hand. How could I do this ?
>
> Thanks in advance
> Srikieat
>


Message #4 by Marcie Robillard <marcierobillard@y...> on Fri, 21 Feb 2003 08:52:04 -0800 (PST)
Hi Srikieat,
You'll want to perform this logic in the ItemDataBound
event of the DataList.  I have an example here for the
Datagrid, but you can do the same thing with a
DataList:
http://www.datagridgirl.com/faq.aspx#ConditionalFormatting

Datagrid Girl

--- Rahul Singh <rahul.singh@a...> wrote:
> Try using a datagrid. ( you might be able to do the
> same in datalist).
> Modify the ItemTemplate for that datalist/grid and
> put custom code there to
> do the check.
> 
> Rahul
> Anant Systems, Inc.
> http://www.anantsystems.net
> 1877ANANTCOx1
> ----- Original Message -----
> From: "GoToDotNet" <srikieat@y...>
> To: "ASP.NET" <aspx@p...>
> Sent: Friday, February 21, 2003 3:18 AM
> Subject: [aspx] Data list
> 
> 
> > Dear Developer,
> > I am very new in aspx and I have some question to
> ask you guys.
> >
> > I would like to use datalist control to display my
> data. The data is about
> the
> > expense of the company. I would like to show red
> color when that number is
> > negative and black in the other hand. How could I
> do this ?
> >
> > Thanks in advance
> > Srikieat
> >
> 
> 
> 


__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

  Return to Index