You need to set the property EnableHeadersVisualStylesto falseto configure your user settings.
this.myDgv.EnableHeadersVisualStyles = false;
this.myDgv.Columns[ 0 ].HeaderCell.Style.BackColor = Color.Red;
That should work.
// EDIT: Ah, you don’t want to do this with code, but the general approach works with the designer too. The property EnableHeadersVisualStylesis a direct property of the DataGridView and the color of the column set in the property ColumnHeadersDefaultCellStyle.
source
share