I have a code like this
GridViewRowCollection row1 = GridView2.Rows;
foreach (GridViewRow row in GridView2.Rows)
{
LinkButton objlink = (LinkButton)row.FindControl("LinkButton2");
objlink.ForeColor = Color.Blue;
}
LinkButton objrow1 = (LinkButton)(e.CommandSource);
objrow1.BackColor = Color.BurlyWood;
Here , when i click the one of the command source , like name.. it changes the bg color for that name ,but i also want to click one more time on same name to to disable bg color..
How can i achieve this ?
Thanks