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

How to hide the header row

3 Answers 47 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 1
Jon asked on 13 Apr 2010, 01:41 AM
Hi.. I'm trying to hide the header row.. but the following shows the borders... How can I totally hide the Header Row?
I'm using a custom data template to display the rows in boxes...

The following worked on previous versions of the controls!!!... But DOES NOT in the current controls... thanks

 

 

<Style TargetType="grid:GridViewHeaderRow" x:Key="HeaderRowStyle">

 

 

 

<Setter Property="Background" Value="Transparent"/>

 

 

 

<Setter Property="BorderBrush" Value="White"/>

 

 

 

<Setter Property="Height" Value="0"/>

 

 

 

<Setter Property="BorderThickness" Value="0 0 0 0"/>

 

 

 

<Setter Property="Margin" Value="0 0 0 0"/>

 

 

 

</Style>

 

3 Answers, 1 is accepted

Sort by
0
Jon
Top achievements
Rank 1
answered on 13 Apr 2010, 01:58 AM
Hi..
THe following does not work on the new controls... for the HeaderRow,,, it works on 2009.3.1405.1030

 

 

<Setter Property="Height" Value="0"/>

 

0
Accepted
Milan
Telerik team
answered on 13 Apr 2010, 06:54 AM
Hi Jon,

There is a property that controls the visibility of the header row. Its name is ShowColumnHeaders and if set to false the header row will become hidden. 


Regards,
Milan
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items.
0
Jon
Top achievements
Rank 1
answered on 13 Apr 2010, 12:35 PM
Thanks again!
Tags
GridView
Asked by
Jon
Top achievements
Rank 1
Answers by
Jon
Top achievements
Rank 1
Milan
Telerik team
Share this question
or