TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Sk Jha
NA
113
43.6k
change back color if gridView cells has empty.
Dec 21 2017 3:16 AM
how to change specific cells backcolor if cells has no data in gridview in asp.net
my code is here..
for
(
int
i = 0; i < GridView1.Row.Cells.Count; i++)
{
if
(GridView1.Row[i].Cells[2].Text ==
""
)
{
GridView1.Row[i].Cells[2].BackColor = Color.Red;
}
else
{
GridView1.Row[i].Cells[2].BackColor = Color.Green;
}
}
Reply
Answers (
5
)
Google Chrome Push Notification
How Save Many PDF file in the Same Physical path