|
-
Dec 13th, 2004, 10:24 AM
#1
Thread Starter
Frenzied Member
changing text in a selected row in a datagrid
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|