答案 0 :(得分:0)
private void dgAnzeigeKostenstelle_LoadingRow(object sender, DataGridRowEventArgs e)
{
try
{
if (Convert.ToInt32(((System.Data.DataRowView)(e.Row.DataContext)).Row.ItemArray[5]) > Convert.ToInt32(((System.Data.DataRowView)(e.Row.DataContext)).Row.ItemArray[4]))
{
e.Row.Background = new SolidColorBrush(Colors.OrangeRed);
}
}
catch
{
}
}