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
Reylin Mathew
NA
347
75.5k
Set color through color ASCII code
Dec 27 2018 9:56 PM
if (e.Row.RowType == DataControlRowType.DataRow)
{
string value = gvdetails.DataKeys[e.Row.RowIndex].Values[0].ToString();
if (value == "abc")
{
Color colour = ColorTranslator.FromHtml("#E7EFF2");
e.Row.BackColor = colour;
//e.Row.ForeColor = System.Drawing.Color.White;
}
}
this code is not working.how to add ascii code (color code) in c# code.
Reply
Answers (
1
)
notification feature
The name ViewBag does not exist in the current context