Make Column Headers invisible?

1 Answer 155 Views
DataGrid
Larry
Top achievements
Rank 1
Iron
Iron
Veteran
Larry asked on 11 Nov 2022, 09:47 PM
I've set the font size to '1' but would really like to get all that space back (i.e., make the header invisible). Is that possible?

1 Answer, 1 is accepted

Sort by
0
Didi
Telerik team
answered on 14 Nov 2022, 04:35 PM

Hello Larry,

If you want to make the column headers invisible here is the style you have to apply to the columns:

<telerik:RadDataGrid>
    <telerik:RadDataGrid.Columns>
        <telerik:DataGridTextColumn >
            <telerik:DataGridTextColumn.HeaderStyle>
                <telerik:DataGridColumnHeaderStyle IndicatorFontSize="0" 
                                                    FilterIndicatorFontSize="0"
                                                    TextFontSize="0"/>
            </telerik:DataGridTextColumn.HeaderStyle>
        </telerik:DataGridTextColumn>
    </telerik:RadDataGrid.Columns>
</telerik:RadDataGrid>

Regards,
Didi
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Larry
Top achievements
Rank 1
Iron
Iron
Veteran
commented on 14 Nov 2022, 09:13 PM

This works great. Thanks!
Tags
DataGrid
Asked by
Larry
Top achievements
Rank 1
Iron
Iron
Veteran
Answers by
Didi
Telerik team
Share this question
or