HI,
I have a simple RadGridView on which I want to change the color of the text in a specific row (= 3 cells). Unfortunately, this code doesn't work:
What is wrong?
Thanks in advance.
I have a simple RadGridView on which I want to change the color of the text in a specific row (= 3 cells). Unfortunately, this code doesn't work:
//add new row to the grid
EventLogGrid.Items.Add(
new
EventLogRow(eventType, occured, msg));
//change the color of the text of all cells if it's an exception
if
(eventType == EventLogger.EventType.Exception)
{
var rows =
this
.EventLogGrid.ChildrenOfType<GridViewRow>();
rows.Last().Foreground =
new
SolidColorBrush(Colors.Yellow);
}
What is wrong?
Thanks in advance.