or

//add new row to the gridEventLogGrid.Items.Add(new EventLogRow(eventType, occured, msg));//change the color of the text of all cells if it's an exceptionif (eventType == EventLogger.EventType.Exception){ var rows = this.EventLogGrid.ChildrenOfType<GridViewRow>(); rows.Last().Foreground = new SolidColorBrush(Colors.Yellow);}