There is a gridview, in that i have 5 columns. Data is coming from Database inside gridview.
I want to change the ForeColor of 5th column's particular rows in gridview according to condition.
The data in 5th column is coming from Database. I want to change the ForeColor of that column's particular rows according to condition.
here is gridview data:-
Station Name
|
State
|
Gate1
|
Gate2
|
Danger Value
|
a
|
aaaa
|
Open
|
Close
|
2
|
b
|
bbbb
|
Close
|
Close
|
4.6
|
c
|
cccc
|
Open
|
Open
|
5
|
d
|
dddd
|
Open
|
close
|
3
|
I want to change the color of 5th column("DangerValue") rows only according to condition.
How to achieve.
Please help.