This is a migrated thread and some comments may be shown as answers.

Datagrid Column Header Styling Rectangles

1 Answer 27 Views
DataGrid
This is a migrated thread and some comments may be shown as answers.
Rob
Top achievements
Rank 1
Rob asked on 29 Mar 2017, 09:51 AM

I am trying to do two things.

There are two rectangles at the bottom of each datagrid column header which i'm trying to remove. I can't find any way of doing this via styling. I also would like to set the header depth to 30. This has the knock on of incorrectly formatting the text in the header (cutting off the bottom). Is there any way of styling these things?

At the moment i am using the following style (via dictionary):

    <Style TargetType="gridPrimitives:DataGridColumnHeader">
        <Setter Property="Background" Value="{StaticResource HighlightBrush}"/>
        <Setter Property="Foreground" Value="{ThemeResource SystemControlHighlightAltChromeWhiteBrush}"/>
        <Setter Property="Height" Value="30"/>
        <Setter Property="FontSize" Value="12"/>
    </Style>

Many thanks

R

1 Answer, 1 is accepted

Sort by
0
Pavel R. Pavlov
Telerik team
answered on 03 Apr 2017, 07:56 AM
Hello Rob,

The RadDataGrid exposes a specific brush that controls the look of the referenced UI part. You can find more information about it in this article

Please try to customize that brush on your end and let us know if you need any further assistance.

Regards,
Pavel R. Pavlov
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
DataGrid
Asked by
Rob
Top achievements
Rank 1
Answers by
Pavel R. Pavlov
Telerik team
Share this question
or