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

Hiding Column Header Text in RadGridView

4 Answers 730 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Ganesh Jagdale
Top achievements
Rank 1
Ganesh Jagdale asked on 04 Jan 2010, 12:25 PM
Hi telerik,

I want to hide header text of column in RadGridView of silverlight why because I shown Grid inside Grid for multiple self referancial  hirarchy. and for child grid I don't want to show column heade ...
 How to that?

My .xaml code like  this..

<

 

telerik:RadGridView Name="clubsGrid"

 

 

AutoGenerateColumns="False"

 

 

ColumnsWidthMode="Auto" >

 

<

 

telerik:RadGridView.HierarchyChildTemplate>

 

 

 

 

 

 

<DataTemplate>

 

 

 

 

 

 

    <telerik:RadGridView Name="level3" ShowGroupPanel="False" AutoGenerateColumns="False"     ColumnsWidthMode="Auto">

 

 

 

 

    </telerik:RadGridView>

 

 

 

 

 

 

</DataTemplate>

 

 

 

 

 

 

</telerik:RadGridView.HierarchyChildTemplate>

 

 

 

 

 

</telerik:RadGridView>

 


Silverlight DataGrid having one property

HeadersVisibility="Column"  using this we can hide HeaderText

but how to do with RadGridView

Pls help me out...

4 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 04 Jan 2010, 01:25 PM
Hi,

You can set ShowColumnHeaders to false to achieve this.

All the best,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Phillip
Top achievements
Rank 1
answered on 11 May 2016, 02:17 PM

@Vlad And is it possible to describe exactly that for only one column? Maybe in the definition of the column?

<telerik:RadGridView.Columns>
     <telerik:GridViewDataColumn Header="{Loc Key=PREISLISTE_ABMENGE}" DataMemberBinding="{Binding Path=AbMenge}" IsFilterable="False"/>
 
     <telerik:GridViewDataColumn />  <!-- Here a column without header-->
 
 
     <telerik:GridViewDataColumn Header="{Loc Key=PREISLISTE_ABMENGE}" DataMemberBinding="{Binding Path=AbMenge}" IsFilterable="False"/>
 
</telerik:RadGridView.Columns>

 

 

0
Dilyan Traykov
Telerik team
answered on 12 May 2016, 01:00 PM
Hello Phillip,

Would simply setting the Header to an empty string suit your requirements? You could also set the IsFilterable and IsSortable properties for the respective column to False if needed.

<telerik:GridViewDataColumn Header="" IsFilterable="False" IsSortable="False" />

If that is not the case, you could define your own style for the GridViewHeaderCell element and set it as the column's HeaderCellStyle as shown in our Styling Column Headers article.

I hope you find this information helpful.

Regards,
Dilyan Traykov
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
0
Karguvelrajan
Top achievements
Rank 1
answered on 25 Oct 2016, 06:24 AM

Step : 1 Set ShowHeader false in Redgrid and MasterTableView.

Step : 2  Set below things in Column

<telerik:GridTemplateColumn UniqueName="Attribute" HeaderText="" AllowFiltering="false" AllowSorting="false">

 

Tags
GridView
Asked by
Ganesh Jagdale
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Phillip
Top achievements
Rank 1
Dilyan Traykov
Telerik team
Karguvelrajan
Top achievements
Rank 1
Share this question
or