see this example for that
protected void GVRate_RowDataBound(object sender, GridViewRowEventArgs e)
{
try
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
DateTime dtdate = DateTime.ParseExact(e.Row.Cells[1].Text, "dd/MM/yyyy", null);
if (dtdate == DateTime.Now.Date)
{
e.Row.BackColor = Color.FromName("#00B5D0");
}
}
}
catch (Exception ex)
{
}
}
it is based on today date condition..like you enter some condition..