You need to write this code in onRowDataBoundEvent
protected void grd_OnRowDataBound(object sender, GridviewEventArgs e)
{
DateTime lblEndDate = IRDateUtils.ConvertToDate(End Time);
DateTime currentDate = IRDateUtils.ConvertToLocal(Convert.ToDateTime(DateTime.Now.ToShortDateString()));
if (lblEndDate < currentDate)
{
}
}