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

Decrease header row height

1 Answer 98 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Richard Harrigan
Top achievements
Rank 1
Richard Harrigan asked on 12 Jun 2011, 06:57 PM
Hi,

The follow code increases the height of row header.  However is I try and make the height smaller than what is the default height it will not get smaller than the default height or something that is close to the default height.   What I am trying to to is show a header but I do not want it to be prominent.  What I am looking for is as follows:

- Reduce the height as much as possible to fit the following:
- Font size = 9,
- Font weight = Bold
- Change the header background color to a very light color

Thanks
Rich

var headerRow = RadGridView.ChildrenOfType<GridViewHeaderRow>().First();
headerRow.Height = 100

1 Answer, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 13 Jun 2011, 07:13 AM
Hi Richard Harrigan,

You need to set the MinHeight property of the GridViewHeaderRow. Thus even when you are setting a smaller value than the default minimal one for the Height, it will be applied. 
 

Greetings,
Maya
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
Tags
GridView
Asked by
Richard Harrigan
Top achievements
Rank 1
Answers by
Maya
Telerik team
Share this question
or