1
I got a field in my datagridiviwer
which is called "SCHEDULE" this field receives a date, which comes from the database as varchar or string, I need to compare the date in this field with the current date, if it is greater than the current date the date line datagridiviwer
color changes. I did the command below but I am not getting the result I hope, this changing the color of all lines.
follows my code
else if (row.Cells["PROGRAMAÇÃO"].Value.ToString() != Convert.ToString(DateTime.Now))
{
row.DefaultCellStyle.BackColor = Color.Bisque;
}
Thank you so much for the help...tested and also worked your response.
– Junior Guerreiro