0

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
2
Contributors
1
Reply
2
Views
7 Years
Discussion Span
Last Post by __avd
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.