Below is a form with a DGV. As can be seen, the background color for the column headers is white. I do not want them to be white. It is obvious to me that ".ColumnHeadersDefaultCellStyle.BackColor = Color.Wheat"
is not correct. I have attempted numerous other approaches with no better results. So exactly what can I do to get the background color of the header columns to be what I want them to be.
Code:
With dgvSignList
.Enabled = False
.BackgroundColor = Color.Tan
.EnableHeadersVisualStyles = True
.ColumnHeadersVisible = True
.BorderStyle = BorderStyle.None
'Headers
.ColumnHeadersDefaultCellStyle.Font = New Font("Times New Roman", 11, FontStyle.Bold)
.ColumnHeadersDefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter
.ColumnHeadersDefaultCellStyle.BackColor = Color.Wheat
'Cells
.DefaultCellStyle.Font = New Font("Times New Roman", 11, FontStyle.Regular)
.DefaultCellStyle.ForeColor = Color.Black
.DefaultCellStyle.BackColor = Color.AntiqueWhite
.DefaultCellStyle.SelectionBackColor = Color.AntiqueWhite
.DefaultCellStyle.SelectionForeColor = Color.Black
.DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleLeft
End With