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

REMOVE THE BORDER OF COLUMN HEADER IN radgridview

2 Answers 744 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Asish
Top achievements
Rank 1
Asish asked on 30 Nov 2010, 01:00 PM
i want to remove the border of each columns headers in the grid view>i tried with borderthickness="0" , but it didnt work.Please help me in removing the border from  telerik grid view.

2 Answers, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 01 Dec 2010, 10:42 AM
Hello Asish,


Considering the GridViewHeaderCell template structure you cannot achieve this effect through a simple style, you should edit its template for that purpose. Also I have prepared an example for you that demonstrates this approach.

 
Kind regards,
Vanya Pavlova
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF
0
Flemming
Top achievements
Rank 1
Veteran
answered on 18 Jun 2020, 01:49 PM

Thank you.

I use Fluent and had the same problem. I just had to add BorderThickness = 0 to the current style. I didn't have to edit the template

The following code make it apply to all

<Style x:Key="GridViewHeaderCellDefaultStyle" TargetType="{x:Type telerik:GridViewHeaderCell}" BasedOn="{StaticResource GridViewHeaderCellStyle}">
        <Setter Property="BorderThickness" Value="0"/>        
    </Style>

    <Style TargetType="telerik:GridViewHeaderCell" BasedOn="{StaticResource GridViewHeaderCellDefaultStyle}"/>

 

To get rid of all the different lines in the radgridview for the fluent theme, I had to also edit the GridViewRow and RadGridView templates. 

Tags
GridView
Asked by
Asish
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
Flemming
Top achievements
Rank 1
Veteran
Share this question
or