Make Datagridview header bold
Dear Experts
I am using following codes to format datagridview column headers,
that works fine.
My question is: how to make all headings bold? (bold header row)
Please help
Code:
With DataGridView1.ColumnHeadersDefaultCellStyle
.Alignment = DataGridViewContentAlignment.MiddleCenter
.BackColor = Color.CornflowerBlue
.ForeColor = Color.Cornsilk
.Font = New Font(.Font.FontFamily, .Font.Size, _
.Font.Style Or FontStyle.Bold, GraphicsUnit.Point)
End With
Re: Make Datagridview header bold