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

Datagrid - Column Header Height

3 Answers 379 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Sangeetha
Top achievements
Rank 1
Sangeetha asked on 08 Oct 2010, 07:21 AM
Is there any property to change the column header height?
Like Datagrid has "ColumnHeaderHeight" property.

3 Answers, 1 is accepted

Sort by
0
Accepted
Emanuel Varga
Top achievements
Rank 1
answered on 08 Oct 2010, 08:41 AM
Hello Sangeetha,

Once again, i would like to direct you to the Demos application, under Grid View -> Customize -> Basics
Or: for just changing TableHeaderHeight you can use:
this.radGridView1.GridElement.TableHeaderHeight = (int)Value;
for the Group header you can use:
this.radGridView1.GridElement.GroupHeaderHeight = (int)Value;

Hope this helps, if you have any other questions or comments, please let me know,

Best Regards,
Emanuel Varga
0
Richard Slade
Top achievements
Rank 2
answered on 08 Oct 2010, 09:02 AM
Hi Sangeetha, 

You also might want to consider AutoSizeRows. This will resize both the data rows and the column header to be the smallest row height for the content. I.e
GridView.AutoSizeRows = True

Regards, 
Richard
0
Sangeetha
Top achievements
Rank 1
answered on 08 Oct 2010, 09:07 AM
Thanks for your reply.

this.radGridView1.GridElement.TableHeaderHeight = (int)Value;   works!
Tags
GridView
Asked by
Sangeetha
Top achievements
Rank 1
Answers by
Emanuel Varga
Top achievements
Rank 1
Richard Slade
Top achievements
Rank 2
Sangeetha
Top achievements
Rank 1
Share this question
or