c# WPF datagridview column color 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