change color of datagridview row c# wpf code example
Example 1: datagridview column color c#
grid.Columns["NameOfColumn"].DefaultCellStyle.ForeColor = Color.Gray;
Example 2: c# datagridview header color
dataGridView1.ColumnHeadersDefaultCellStyle.BackColor = Color.Black