C# – color of row divider in datagridview

cdatagridviewwinforms

I have a winforms (c#) datagridview form where I can set the divider between rows with row.DividerHeight = 1

But I would like to change the color of the dividerline, to lets say Color.Red, how would I do that? I dont want to change the background color of the cell.

Best Answer

DataGridView.GridColor Looks like it controls the row divider color as well.