GridTableHeaderRowElement

6 posts, 1 answers
  1. Paul Gallen
    Paul Gallen avatar
    156 posts
    Member since:
    Jun 2008

    Posted 10 Dec 2008 Link to this post

    Hi

    I am trying to adjust the height of this element, without much luck. I have set the AutoSize property to false, then set any height properties I can select for this element. With the Autosize = false, the gid displays no RowElelment at all.

    Also

    I have set the GridNewRowElement to Hidden, however this still displays in my grid at runtime. Without setting the property AllowAddNewRow = false, how can this be achieved through the Visual Designer.


    Thanks

    P
  2. Nick
    Admin
    Nick avatar
    767 posts

    Posted 11 Dec 2008 Link to this post

    Hi Paul Gallen,

    Thank you for your questions.

    You can set the header height using the following code snippet:

    private void Form1_Load(object sender, EventArgs e) 
         this.radGridView1.GridElement.TableHeaderHeight = 100; 

    Regarding your second question, please set AllowAddNewRow to false.

    Do not hesitate to write me back if you have more questions.

    Greetings,
    Nick
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Paul Gallen
    Paul Gallen avatar
    156 posts
    Member since:
    Jun 2008

    Posted 11 Dec 2008 Link to this post

    Hi

    Sorry I did not make myself clear, I need to perform this functionality through your Themes,hence posting this issue to your
    RadControls for WinForms: Themes and Visual Style Builder  forum.



    Thanks

    P
    /
  5. Nick
    Admin
    Nick avatar
    767 posts

    Posted 12 Dec 2008 Link to this post

    Hi Paul Gallen,

    Thank you for your second question.

    Yes, this is possible though themes as well. Start VSB, open the RootRadElement node, select its first child node - GridTableElement, and then modify its TableHeaderHeight property.

    Do not hesitate to write me back if you have more questions.

    Regards,
    Nick
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  6. Paul Gallen
    Paul Gallen avatar
    156 posts
    Member since:
    Jun 2008

    Posted 12 Dec 2008 Link to this post

    HI Nick,

    Thanks for that, through theming I am now able to alter the height HeaderRowElement.

    To my original second question re: 
    'I have set the GridNewRowElement to Hidden, however this still displays in my grid at runtime. Without setting the property AllowAddNewRow = false, how can this be achieved through the Visual Designer'.

    Again I do not want to use code.

    I think the problem here, for me, is that there are a lot of properties that are available and it is knowing which property to set to get the desired result. At times this is not apparent.
     

    P
  7. Answer
    Nick
    Admin
    Nick avatar
    767 posts

    Posted 15 Dec 2008 Link to this post

    Hello Paul Gallen,

    Sorry for missing the second question.

    Unfortunately, you cannot hide the new row using the Visual Style Builder. The builder's primary purpose is visual customization of the control's UI and it cannot manage functional changes.


    Regards,
    Nick
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top
UI for WinForms is Visual Studio 2017 Ready