for (int i = 0; i < GridView1.Rows.Count-1; i++)
{
for (int j = 0; j < GridView1.Rows[i].Cells.Count-1; j++)
{
if (GridView1.Rows[i].Cells[j]!=null)
{
GridView1.Rows[i].Cells[j].BackColor = "Pink";
}
}
}
This Will Help You any ways
You can call this where Ever Your Logic Fits..
Happy COdInG:)