This is a migrated thread and some comments may be shown as answers.

Coloring rows of a childtemplate

1 Answer 41 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Andy
Top achievements
Rank 1
Andy asked on 12 Apr 2011, 05:17 PM
Hi,

I am trying to color a row of a child if the date in the first cell is higher than the current date and the string in the second cell is not equal to "Closed".

I tried iterating through the rows but wasn't able to get the value of a certain cell to compare with.

I tried a few other approaches but nothing seemed to work. I'm real stuck on this one.

Thank you for the help.

1 Answer, 1 is accepted

Sort by
0
Richard Slade
Top achievements
Rank 2
answered on 13 Apr 2011, 10:02 AM
Hi Andy,

To colour a row based on a condition you can use the RowFormatting event. Please have a look at this help topic. If you need further help, please let me know.
Regards,
Richard
Tags
GridView
Asked by
Andy
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Share this question
or