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

Setting Child TableHeaderHeight

1 Answer 50 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Ron
Top achievements
Rank 1
Ron asked on 19 Aug 2009, 03:31 AM

I can set the parent TableHeaderHeight for a RadGridView no problem...

((GridTableElement)this.radGridView1.GridElement).TableHeaderHeight = 20;

However I need to set the Header height on the related GridViewTemplate.
How can this be done programmatically?





1 Answer, 1 is accepted

Sort by
0
Victor
Telerik team
answered on 21 Aug 2009, 01:08 PM
Hello Ron,

Thank you for your question. You can set the header height in the ViewCellFormatting event like so:

void radGridView1_ViewCellFormatting(object sender, CellFormattingEventArgs e)  
{  
    if(e.CellElement.ViewTemplate.Parent != null)  
    {  
        e.CellElement.TableElement.TableHeaderHeight = 100;  
    }  

We will update the documentation with more similar examples in near future. Write again if you need further assistance.

Regards,
Victor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
GridView
Asked by
Ron
Top achievements
Rank 1
Answers by
Victor
Telerik team
Share this question
or