How To Particular Name Coloring in GridView

Jayakumars
Posted by Jayakumars under ASP.NET AJAX category on | Points: 40 | Views : 1434
How To Particular Name Coloring in GridView
======================================
protected void GridView1_DataBound(object sender, EventArgs e)
{

foreach (GridViewRow gv in GridView1.Rows)
{
TextBox empname = (TextBox)gv.FindControl("txtEempname");
if(empname.Text =="AAA")
{
empname.Attributes.Add("style", "color:red;");
}
}
}

Comments or Responses

Login to post response