Datagrid Column Header Styling Rectangles

2 posts, 0 answers
  1. Rob
    Rob avatar
    27 posts
    Member since:
    Feb 2012

    Posted 29 Mar 2017 Link to this post

    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"/>

    Many thanks


  2. Pavel R. Pavlov
    Pavel R. Pavlov avatar
    1251 posts

    Posted 03 Apr 2017 Link to this post

    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.

    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
Back to Top