Hello Guys
I'm trying to change the font color of the complete row based on a value of a column. Currently I do this:
private
void
LicensesList_RowFormatting(
object
sender, RowFormattingEventArgs e)
{
if
(e.RowElement.VisualCells.Count == 0)
return
;
e.RowElement.ForeColor = (
bool
) e.RowElement.VisualCells[7].Value ? Color.Red : Color.Green;
}
which is basically working but not for the Child rows. They appear black at first and change color when I select them. Also, if I do a .MasterTemplate.Refresh() all the columns turn black again until they are selected. Is there something I've missed or is my approach bad?
Thank You