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

Setting Row Height

4 Answers 877 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 12 May 2009, 04:52 PM

Private

 

Sub RadGridView_SessionData_RowFormatting(ByVal sender As Object, ByVal e As Telerik.WinControls.UI.RowFormattingEventArgs) Handles RadGridView_SessionData.RowFormatting 

 

 

e.RowElement.RowInfo.Height = 200 

 

End

 

Sub

 

 

 

This is not working i want to just set the row height for the grid! what am i doing wrong?

4 Answers, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 13 May 2009, 08:17 AM
Hi Michael,

Thank you for contacting us.

Unless you have set the AutoSizeRows property to true this code should work. If this is not the case, please open a support ticket and send us your application. We will investigate the situation and will try to locate any potential issue.

There is also another way to change the row height. You can set the RowHeight property of the GridElement. Please check the sample below:

RadGridView1.GridElement.RowHeight = 200 

I hope this helps. If you need further assistance, I will be glad to help.

Greetings,
Jack
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Rich
Top achievements
Rank 1
answered on 01 Mar 2013, 10:10 PM

Can you set different heights for rows in a single grid?
0
Jack
Telerik team
answered on 05 Mar 2013, 02:45 PM
Hello Rich,

Yes, you can specify different row heights. In order to do this, you should set the Height property for the row. Here is a sample:
this.radGridView1.ChildRows[3].Height = 50;

Should you have other questions, do not hesitate to ask.
 
All the best,
Jack
the Telerik team
WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Join us for a FREE webinar to see all the new stuff in action.

Interested, but can’t attend? Register anyway and we’ll send you the recording.
0
Manish
Top achievements
Rank 1
answered on 12 Jun 2013, 02:39 AM
Hi,
You can use the RowHeight property of the RadGridView like-


<telerik:RadGridView AutoGenerateColumns="False" IsReadOnly="True" ItemsSource="{Binding TimeSlots}" RowIndicatorVisibility="Collapsed" RowHeight="18">

Hope this may help you. 


Tags
GridView
Asked by
Michael
Top achievements
Rank 1
Answers by
Jack
Telerik team
Rich
Top achievements
Rank 1
Manish
Top achievements
Rank 1
Share this question
or