TableHeaderHeight - Default Value

2 posts, 0 answers
  1. Doug
    Doug avatar
    50 posts
    Member since:
    Jul 2012

    Posted 24 Jul 2013 Link to this post

    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
  2. Dess
    Admin
    Dess avatar
    1609 posts

    Posted 29 Jul 2013 Link to this post

    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 >>
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top