CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums
Results 1 to 2 of 2

Thread: DataGrid Header fontweight to Bold

  1. #1
    Join Date
    Apr 2009

    DataGrid Header fontweight to Bold

    Hi ,

    I am using datagrid in my project .i need to set Grid header font to be bold .

    Please let me know.

  2. #2
    Join Date
    Sep 2002
    14 39'19.65"N / 121 1'44.34"E

    Re: DataGrid Header fontweight to Bold

    Probably the easiest way to accomplish this is by setting the DataGrid's ColumnHeaderStyle to a Style that sets the FontWeight accordingly. The following code shows how you could set the Style in-line, using property element syntax:
            <Style TargetType="Control">
                <Setter Property="FontWeight" Value="Bold"/>
    In your actual code, you'd probably rather define a separate style as a resource and assign it.

Posting Permissions

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

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)