DataGridRow in DataGrid MVVM <p>How can I change row color in my DataGrid using MVVM?</p> <pre><code>&lt;DataGrid x:Name="dataGrid" AutoGenerateColumns="False" SelectedIndex="{Binding SelectedIndex, Mode=TwoWay}" SelectedItem="{Binding SelectedAction, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" ItemsSource="{Binding students1}"&gt; </code></pre> <p>and I have property as</p> <pre><code> public Model.Student SelectedAction { get; set; } public int SelectedIndex { get; set; } </code></pre> <p>How change DataGrid Row Color for selected item?</p>