Hi
Vidhya,
Please use following:
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
string time= e.Row.Cells[0].Text;
string[] names = new string[] { "170", "171" };
if (time >= DateTime.Now.Tostring("HH:mm:ss"))
{
e.Row.Cell[0].BackColor = "LightBlue";
}
}
}
Thanks,
Imdadhusen