Hello,

I have a datagrid with books, when the book is overdue i want it to change the text to Red. A for has been used to go through each row (works fine). But when it comes to a book that is overdue, l want it to change the text to red. I have tired using the code below, but does not work.

<code>if ( dateDue < todaysDate )
{
grdBookOnLoan.Select(i); //i For loop counter
grdBookOnLoan.ForeColor = Color.Red;
grdBookOnLoan.UnSelect(i);
}</code>

Thanks in advance,

Steve