[RESOLVED] DataGridView HeaderCell Color changing
Hi i have a few datagridviews in my application
how can I change the color of the top row (Header).
This is what i thought the right command but unsucessfull :(
dGrid1.Columns[i].HeaderCell.Style.BackColor = Color.LightSteelBlue;
Anyone has a solution for this.
many thx in advance
Re: DataGridView HeaderCell Color changing
You cannot change the column and row header colours without disabling visual styles:
Code:
myDataGridView.EnableHeadersVisualStyles = false;
Re: DataGridView HeaderCell Color changing
@jmcilhinney:
many thx - works like expected :wave: