I'm trying to change the font color of the complete row based on a value of a column. Currently I do this:
sender, RowFormattingEventArgs e)
(e.RowElement.VisualCells.Count == 0)
e.RowElement.ForeColor = (
) e.RowElement.VisualCells.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?