Dear Experts

I am using following codes to format datagridview column headers,
that works fine.
My questions are
1) how to make all headings bold? (bold header row)
2) how to apply specific font to heading row
3) how to apply specific fontsize to heading row
4) how to apply specific fontstyle to heading row

Please help

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
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.