Results 1 to 2 of 2

Thread: Make Datagridview header bold

  1. #1

    Thread Starter
    Member
    Join Date
    Oct 2009
    Posts
    58

    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

  2. #2
    Lively Member
    Join Date
    Nov 2009
    Location
    Toronto
    Posts
    103

    Re: Make Datagridview header bold


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width