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

TableElement

3 Answers 205 Views
GridView
This is a migrated thread and some comments may be shown as answers.
anand
Top achievements
Rank 1
anand asked on 22 Nov 2010, 10:11 PM
Hi,

Is there a trick to get the following items to work:

TableElement.TableHeaderHeight
TableElement.RowHeight

Is is possible to set them design time?

Thanks,
Anand

3 Answers, 1 is accepted

Sort by
0
Brennan
Top achievements
Rank 1
answered on 22 Nov 2010, 10:28 PM
CType(Me.radGridView1.TableElement,Telerik.WinControls.UI.GridTableElement).RowHeight = 35
This should work for you.
0
Richard Slade
Top achievements
Rank 2
answered on 22 Nov 2010, 10:51 PM
Hello All,

As far as I'm aware, it is not currently possible to set these in Design time.
To set the two properties that you need, please consider the following code

VB
CType(Me.RadGridView1.TableElement, Telerik.WinControls.UI.GridTableElement).RowHeight = 35
CType(Me.RadGridView1.TableElement, Telerik.WinControls.UI.GridTableElement).TableHeaderHeight = 70

C#
((Telerik.WinControls.UI.GridTableElement)this.RadGridView1.TableElement).RowHeight = 35;
((Telerik.WinControls.UI.GridTableElement)this.RadGridView1.TableElement).TableHeaderHeight = 70;

hope that helps, but let me know if you have further questions
Richard
0
Jack
Telerik team
answered on 23 Nov 2010, 10:08 AM
Hello Anand,

Like Richard said, it is not possible to set these properties at design time. You have to use code, however you do not need to cast. The following code will be enough when using our latest release Q3 2010:

Me.RadGridView1.TableElement.RowHeight = 35
Me.RadGridView1.TableElement.TableHeaderHeight = 70

I hope this helps.
 
All the best,
Jack
the Telerik team
Get started with RadControls for WinForms with numerous videos and detailed documentation.
Tags
GridView
Asked by
anand
Top achievements
Rank 1
Answers by
Brennan
Top achievements
Rank 1
Richard Slade
Top achievements
Rank 2
Jack
Telerik team
Share this question
or