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

TableHeaderHeight - Default Value

1 Answer 95 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Doug
Top achievements
Rank 1
Doug asked on 24 Jul 2013, 03:23 PM
I must be missing something.  In the designer and when the application runs, the column header row looks to be about 35px high.  If I add "MessageBox.Show(myGridView.TableElement.TableHeaderHeight.ToString());" after InitializeComponent() runs, the message shows a value of 20.  If I add "myGridView.TableElement.TableHeaderHeight = 20;" after InitializeComponent() runs, then the column header height looks like 20px.  Am I missing something here?

Thank you,
Gary

1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 29 Jul 2013, 03:40 PM
Hello Gary,

Thank you for contacting Telerik Support.

During Form1_Load event you will obtain the real TableHeaderHeight of the RadGridView (by defaults its value is 30), because after InitializeComponent() not all layouts (which are asynchronous) are over.

I hope this information helps. Should you have further questions, I would be glad to help.

Regards,
Desislava
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
GridView
Asked by
Doug
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or