
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
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
0
Hi Paul Gallen,
Thank you for your questions.
You can set the header height using the following code snippet:
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.
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/
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
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.
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
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
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.
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.