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

Child Grid View - How to avoid displaying a blank line at the end of the child grid

1 Answer 49 Views
GridView
This is a migrated thread and some comments may be shown as answers.
George
Top achievements
Rank 1
George asked on 20 Feb 2009, 01:43 PM
Dear All,

I have a master grid view that displays a hierarchical child. However, the child window always displays below it a blank line, supposedly I believe the place whre the horizontal scroll bar would appear, and I am trying to find a way how to get rid of it. Setting different options like horizontalscrollebar always hidden does not do the trick. Any ideas anyone?

Thank you in advance,

George

1 Answer, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 23 Feb 2009, 10:42 AM
Hello George,

You could try to set a custom height for the child view. This can be done when processing the ViewRowFormatting event. Take a look at the code snippet below:

void radGridView1_ViewRowFormatting(object sender, RowFormattingEventArgs e) 
    if (e.RowElement is GridDetailViewRowElement) 
    { 
        e.RowElement.RowInfo.Height = 100; 
    } 

I hope this helps. Should you have any questions, don't hesitate to contact us.

All the best,
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.
Tags
GridView
Asked by
George
Top achievements
Rank 1
Answers by
Jack
Telerik team
Share this question
or