DateTime _dt1 = Convert.ToDateTime(GridView1.Rows[0][6]); DateTime _dt2 = Convert.ToDateTime(DateTime.Now.ToString("MM/dd/yyyy")); if (_dt1 < _dt2) { GridView1.Rows[0][6].BackColor = System.Drawing.Color.Red; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)