Add the below code for your DataGrid:
<DataGrid.Resources>
<SolidColorBrush x:Key="columnBackground"/>
</DataGrid.Resources>
Then set the CellStyle for the DataGrid:
Change the color in the cs:
this.dg.Resources["columnBackground"] = Brushes.Red;
The result is like below shown:
Here is the demo code for you to test.