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

GridTableHeaderRowElement

5 Answers 75 Views
Themes and Visual Style Builder
This is a migrated thread and some comments may be shown as answers.
Paul Gallen
Top achievements
Rank 1
Paul Gallen asked on 10 Dec 2008, 04:30 PM
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

5 Answers, 1 is accepted

Sort by
0
Nick
Telerik team
answered on 11 Dec 2008, 02:11 PM
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.
0
Paul Gallen
Top achievements
Rank 1
answered on 11 Dec 2008, 05:26 PM
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
/
0
Nick
Telerik team
answered on 12 Dec 2008, 08:21 AM
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.
0
Paul Gallen
Top achievements
Rank 1
answered on 12 Dec 2008, 09:39 AM
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
0
Accepted
Nick
Telerik team
answered on 15 Dec 2008, 02:32 PM
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.
Tags
Themes and Visual Style Builder
Asked by
Paul Gallen
Top achievements
Rank 1
Answers by
Nick
Telerik team
Paul Gallen
Top achievements
Rank 1
Share this question
or