c# winforms datagridview header color code example Example: c# datagridview header color dataGridView1.ColumnHeadersDefaultCellStyle.BackColor = Color.Black