This is a migrated thread and some comments may be shown as answers.

Change the backcolor of cell depending upon the condition

1 Answer 65 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Syed
Top achievements
Rank 1
Syed asked on 12 May 2009, 12:25 AM
Hi,

I have a column named "Price" on the grid and i want to change the color of the cell of this column depending upon the condition.

if row(n)column("Price")<=60 then
row(n)column("Price").Backcolor="REd"
elseif row(n)column("Price")>60 and <=90 then
row(n)column("Price").Backcolor="blue"
elseif row(n)column("Price")>90 a then
row(n)column("Price").Backcolor="green"

Thanks.

1 Answer, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 12 May 2009, 03:41 AM
Hello Syed,

You can refer to the following help document which explains on how to customize grid elements and implement conditional formatting
Conditional Formatting for rows/cells on ItemDataBound

Thanks
Princy.
Tags
Grid
Asked by
Syed
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or