GridColor property of the DataGridView can set the color of the grid lines separating the DataGridView cells (i.e. the borders of each cell).
But it cannot change the color of the grid lines of the header cells (i.e. the borders of the header cells).
How can I achieve this?
Is there a property that I can use for this?
1.Change GridColor property

2.Changing My Requirement

As stated in TnTinMn, the GridColor property GridColor affects cells with CellBorderStyle= DataGridViewCellBorderStyle.Single .
The result is as follows.
It cannot affect the grid lines separating the header cells.
CellBorderStyle 
After another attempt, I will succeed.
4.Changing the use of `EnableHeadersVisualStyles = false ' 
( Solution ) To summarize:
1.Using GridColor to set the color of the grid lines.
2. Set CellBorderStyle , ColumnHeadersBorderStyle , RowHeadersBorderStyle to Single .
EnableHeadersVisualStyles to false .
source share