Click here to Skip to main content
14,693,572 members
Home » Discussions » ASP.NET
   

ASP.NET

 
AnswerRe: hello Pin
Abhijit Jana16-Mar-10 23:53
professionalAbhijit Jana16-Mar-10 23:53 
AnswerRe: hello Pin
Steven J Jowett17-Mar-10 1:32
MemberSteven J Jowett17-Mar-10 1:32 
GeneralRe: hello Pin
Keith Barrow17-Mar-10 7:50
professionalKeith Barrow17-Mar-10 7:50 
Questionreg directive Pin
sowjanya316-Mar-10 23:15
Membersowjanya316-Mar-10 23:15 
AnswerRe: reg directive Pin
Abhijit Jana16-Mar-10 23:34
professionalAbhijit Jana16-Mar-10 23:34 
GeneralRe: reg directive Pin
sowjanya317-Mar-10 1:50
Membersowjanya317-Mar-10 1:50 
QuestionDetailsview - Primary Key - Autogenerate Pin
rikhav16-Mar-10 22:30
Memberrikhav16-Mar-10 22:30 
Question.net webservices tracking usps and ups Pin
laziale16-Mar-10 11:50
Memberlaziale16-Mar-10 11:50 
AnswerRe: .net webservices tracking usps and ups Pin
T M Gray16-Mar-10 12:13
MemberT M Gray16-Mar-10 12:13 
GeneralRe: .net webservices tracking usps and ups Pin
laziale16-Mar-10 12:16
Memberlaziale16-Mar-10 12:16 
QuestionReturn Value from Stored Procedure Pin
ahayw0116-Mar-10 9:06
Memberahayw0116-Mar-10 9:06 
AnswerRe: Return Value from Stored Procedure Pin
Sandeep Mewara16-Mar-10 10:14
mentorSandeep Mewara16-Mar-10 10:14 
GeneralRe: Return Value from Stored Procedure Pin
ahayw0116-Mar-10 10:23
Memberahayw0116-Mar-10 10:23 
GeneralRe: Return Value from Stored Procedure Pin
Sandeep Mewara16-Mar-10 10:27
mentorSandeep Mewara16-Mar-10 10:27 
GeneralRe: Return Value from Stored Procedure Pin
Sandeep Mewara16-Mar-10 10:34
mentorSandeep Mewara16-Mar-10 10:34 
GeneralRe: Return Value from Stored Procedure Pin
ahayw0116-Mar-10 10:34
Memberahayw0116-Mar-10 10:34 
GeneralRe: Return Value from Stored Procedure Pin
Sandeep Mewara16-Mar-10 10:38
mentorSandeep Mewara16-Mar-10 10:38 
QuestionDefaulting a DataView control with paging to the last page. Pin
Steven J Jowett16-Mar-10 8:00
MemberSteven J Jowett16-Mar-10 8:00 
AnswerRe: Defaulting a DataView control with paging to the last page. Pin
Sandeep Mewara16-Mar-10 8:15
mentorSandeep Mewara16-Mar-10 8:15 
AnswerRe: Defaulting a DataView control with paging to the last page. Pin
ASHISH GHADI18-Mar-10 23:02
MemberASHISH GHADI18-Mar-10 23:02 
AnswerRe: Defaulting a DataView control with paging to the last page. Pin
ASHISH GHADI18-Mar-10 23:08
MemberASHISH GHADI18-Mar-10 23:08 
Questionif statement in the html code in aspx page Pin
laziale16-Mar-10 6:39
Memberlaziale16-Mar-10 6:39 
AnswerRe: if statement in the html code in aspx page Pin
JHizzle16-Mar-10 6:41
MemberJHizzle16-Mar-10 6:41 
GeneralRe: if statement in the html code in aspx page Pin
laziale16-Mar-10 6:43
Memberlaziale16-Mar-10 6:43 
GeneralRe: if statement in the html code in aspx page Pin
JHizzle16-Mar-10 6:50
MemberJHizzle16-Mar-10 6:50 
Ahhh ok. So, from my experience, you're probably going to want to hook into the databind event on a row, find your label control using fincontrol on the row being passed and then change the colour there. Example:

protected  void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{

Label myLabel = (Label)e.Row.FindControl("yourlabel");

if (myLabel.Text == "Jack")
{
    'change the colour here
}

}


There might be an easier way but that's just off the top of my head.

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.