I'm trying to change the color of my datagridrows based on the ID change. I have already bind the data to the datagridview.
I think the easiest way would be to check if the ID in Column 1 is odd or even:
even rowbackground = white odd rowbackground = brown
The Idea is to get a better overview and collect the items a bit due to background color.
Im complety new to WPF: At the moment i have just the datagrid included as follows:
<DataGrid x:Name="cusDetailGrid" Grid.Column="1" Grid.Row="2" ItemsSource="{Binding}"/>
This will be populated by a selectionstring to MySqlDB.
Any Ideas how to get this working? Thank you in advance!