syr
April 25th, 2009, 08:45 AM
Hi ,
I am using datagrid in my project .i need to set Grid header font to be bold .
Please let me know.
I am using datagrid in my project .i need to set Grid header font to be bold .
Please let me know.
|
Click to See Complete Forum and Search --> : DataGrid Header fontweight to Bold syr April 25th, 2009, 08:45 AM Hi , I am using datagrid in my project .i need to set Grid header font to be bold . Please let me know. gstercken April 30th, 2009, 04:06 AM 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: <dg:DataGrid> <dg:DataGrid.ColumnHeaderStyle> <Style TargetType="Control"> <Setter Property="FontWeight" Value="Bold"/> </Style> </dg:DataGrid.ColumnHeaderStyle> </dg:DataGrid> In your actual code, you'd probably rather define a separate style as a resource and assign it. codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |