You shall
Refresh the
GridView
data on a periodic manner using
Timer
How to refresh GridView automatically using AJAX TimerEverything Technical[
^]
Auto Refresh Update GridView In Asp.Net Ajax With Timer[
^]
updated solution after OP's clarification:
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
DateTime dt = DateTime.ParseExact(e.Row.Cells[1].Text, "dd-MMM-yyyy hh:mm:ss", System.Globalization.CultureInfo.InvariantCulture);
if (dt < DateTime.Now)
e.Row.Style.Add("background-color", "red");
}
}