Pages

About Me

My photo
ForEach(Minute in MyLife) MyExperience ++;

Tuesday, May 31, 2011

Find Control Inside Gridview

if (e.Row.RowType == DataControlRowType.DataRow)
{
Label Lbl1 = (Label)e.Row.FindControl("Lbl_STATUS");
if (Lbl1.Text == "True")
Lbl1.Text = "Active";
else if (Lbl1.Text == "False")
Lbl1.Text = "Inactive";
}

No comments:

Post a Comment