private void dataGrid_LoadingRow(object sender, Microsoft.Windows.Controls.DataGridRowEventArgs e)
{
DataGridRow dataGridRow = e.Row;
CommandResultInfo dataRow = e.Row.Item as CommandResultInfo;
if (某行某列的值==某值)
{
dataGridRow.Background = Brushes.Plum;
}
}
这个你可以试试