I have a field in my datagridiviwer
that is called "PROGRAMMING" this field receives a date, which comes from the database as varchar or string, I need to compare the date that is in this field with the current date, if it is greater than the current date the date line datagridiviwer
changes color. I did the command below but I am not getting the result that I hope, it is changing the color of all the lines.
follow my code
else if (row.Cells["PROGRAMAÇÃO"].Value.ToString() != Convert.ToString(DateTime.Now))
{
row.DefaultCellStyle.BackColor = Color.Bisque;
}