davidegironi / advanceddatagridview

A .NET WinForms DataGridView with advanced capabilities
392 stars 123 forks source link

How to change ColumHeadStyle? #90

Closed oiDilyo closed 2 years ago

oiDilyo commented 2 years ago

I would like to change the column head back color to Gary. I don`t know how to change this.

davidegironi commented 2 years ago

Hello, what do you mean with header color? Gary?

oiDilyo commented 2 years ago

I mean this. Color You need to change back color and text color

Sorry, My English is very terrible.

davidegironi commented 2 years ago

Something like this, after the component is being initializated would work:

advancedDataGridView_main.ColumnHeadersDefaultCellStyle.BackColor = Color.Gray;
advancedDataGridView_main.EnableHeadersVisualStyles = false;