I am design Gridview control check my image below.May be 100 rows have but now
1.Every Control i am using find control like this
foreach (GridViewRow gr in Dtg_EmpAttDet.Rows)
TextBox TD1 = ((TextBox)gr1500.Cells.FindControl("TtD1"));
TextBox TD2 = ((TextBox)gr1500.Cells.FindControl("TtD2"));
2.below if statement which textbox !="AA" value i need coloring
so i am using if statement like this
below statement i am using or,and both using but i
if (TD1.Text != "AA" || TD2.Text!="AA")
TD1.BackColor = System.Drawing.Color.Brown;
TD2.BackColor = System.Drawing.Color.Brown;
but my output 2 row notworking correctly because every row match and calidate here how to solve this.
Click and 3 header working good i need same function header 2 but i am achieve
this but every control i am write if statements but this is wrong how to simplify this.