Click here to Skip to main content
14,599,740 members
   

ASP.NET

 
GeneralRe: change forecolor of a label in gridview Pin
laziale15-Mar-10 11:06
Memberlaziale15-Mar-10 11:06 
GeneralRe: change forecolor of a label in gridview Pin
Abhijit Jana15-Mar-10 11:17
professionalAbhijit Jana15-Mar-10 11:17 
GeneralRe: change forecolor of a label in gridview Pin
laziale15-Mar-10 11:35
Memberlaziale15-Mar-10 11:35 
GeneralRe: change forecolor of a label in gridview Pin
FyreWyrm15-Mar-10 15:39
MemberFyreWyrm15-Mar-10 15:39 
GeneralRe: change forecolor of a label in gridview Pin
Brij15-Mar-10 18:27
mentorBrij15-Mar-10 18:27 
GeneralRe: change forecolor of a label in gridview Pin
laziale16-Mar-10 3:14
Memberlaziale16-Mar-10 3:14 
GeneralRe: change forecolor of a label in gridview Pin
Abhijit Jana16-Mar-10 3:30
professionalAbhijit Jana16-Mar-10 3:30 
GeneralRe: change forecolor of a label in gridview Pin
laziale16-Mar-10 3:59
Memberlaziale16-Mar-10 3:59 
ok, there were two events for the same thing, that why it wasn't triggered. Now its triggered, but for some reason when I am stepping in to the code the label property doesn't get the text. Its left empty.
Here is the code:

void gvOrderProductVariants_RowDataBound(object sender, GridViewRowEventArgs e)
   {
       if (e.Row.RowType == DataControlRowType.DataRow)
       {
           Label lblFirstName= (Label)e.Row.FindControl("lblFirstName");
           if (lblFirstame.Text.Contains("John"))
               lblFirstName.ForeColor = System.Drawing.Color.Red;
       }


   }



Please tell me if I am doing something wrong.
Thx, Laziale
AnswerRe: change forecolor of a label in gridview Pin
carlecomm15-Mar-10 16:35
Membercarlecomm15-Mar-10 16:35 
GeneralRe: change forecolor of a label in gridview Pin
laziale16-Mar-10 3:17
Memberlaziale16-Mar-10 3:17 
QuestionBulletedList control Pin
hotthoughtguy15-Mar-10 8:03
Memberhotthoughtguy15-Mar-10 8:03 
AnswerRe: BulletedList control Pin
Sandeep Mewara15-Mar-10 9:23
mentorSandeep Mewara15-Mar-10 9:23 
AnswerRe: BulletedList control Pin
Brij15-Mar-10 9:31
mentorBrij15-Mar-10 9:31 
GeneralRe: BulletedList control Pin
Abhijit Jana15-Mar-10 9:53
professionalAbhijit Jana15-Mar-10 9:53 
GeneralRe: BulletedList control Pin
Brij15-Mar-10 18:18
mentorBrij15-Mar-10 18:18 
GeneralRe: BulletedList control Pin
Abhijit Jana15-Mar-10 19:51
professionalAbhijit Jana15-Mar-10 19:51 
QuestionA generic error occurred in GDI+ on bitmap.save Pin
VinothRao15-Mar-10 4:49
MemberVinothRao15-Mar-10 4:49 
AnswerRe: A generic error occurred in GDI+ on bitmap.save Pin
JHizzle15-Mar-10 5:27
MemberJHizzle15-Mar-10 5:27 
GeneralRe: A generic error occurred in GDI+ on bitmap.save Pin
VinothRao15-Mar-10 14:33
MemberVinothRao15-Mar-10 14:33 
QuestionMultiple Email ids Validating Pin
MallikarjunaGupta15-Mar-10 3:50
MemberMallikarjunaGupta15-Mar-10 3:50 
AnswerRe: Multiple Email ids Validating Pin
David Mujica15-Mar-10 4:28
MemberDavid Mujica15-Mar-10 4:28 
AnswerRe: Multiple Email ids Validating Pin
JHizzle15-Mar-10 4:37
MemberJHizzle15-Mar-10 4:37 
AnswerRe: Multiple Email ids Validating Pin
Sandeep Mewara15-Mar-10 9:17
mentorSandeep Mewara15-Mar-10 9:17 
QuestionTemplateField gridview Pin
mahmoudinirat15-Mar-10 2:57
Membermahmoudinirat15-Mar-10 2:57 
AnswerRe: TemplateField gridview Pin
Abhijit Jana15-Mar-10 3:42
professionalAbhijit Jana15-Mar-10 3:42 

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.