This project is read-only.

DataGrid Header Borders

Sep 5, 2013 at 4:50 AM
Hello,

Is it possible to get borders around DataGrid Column Headers, like those that are present around cells?

Regards,
Tarak
Sep 5, 2013 at 1:38 PM
Yep,
<mui:DataGridTextColumn Header="Column1">
<mui:DataGridTextColumn.HeaderStyle>
    <Style TargetType="DataGridColumnHeader" BasedOn="{StaticResource {x:Type DataGridColumnHeader}}">
         <Setter Property="BorderBrush" Value="AliceBlue" />
         <Setter Property="BorderThickness" Value="2" />
</Style>
</mui:DataGridTextColumn.HeaderStyle>
 </mui:DataGridTextColumn>
Sep 6, 2013 at 4:57 AM
Thanks a lot.

I modified the style to look more like the DataGrid cell borders while remaining distinct
<Setter Property="BorderBrush" Value="#FFBBB7B7" />
<Setter Property="BorderThickness" Value="0,0,1,1" />