We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

DetailsViewDataGrid maxheight

Thread ID:





123774 Apr 20,2016 06:09 AM Jan 25,2018 11:33 PM WPF 5
Tags: SfDataGrid
marco del frate
Asked On April 20, 2016 06:09 AM

Good morning,

i would like to know if it's posible to set the maxheight of the detailsview area for the sfdatagrid.
When I set maxheight for the detailsdatagrid using DetailsViewDatagridStyle, the grid has his height limited while the details area remain with the height unchanged.
Please find attached an image i hope is more clear.

Thank You in advance

Best regards

Attachment: Screenshot_(16)_59a63029.rar

Srinivasan Vasu [Syncfusion]
Replied On April 21, 2016 01:31 PM

Hi Marco,

Thanks for contacting Syncfusion support.

We have analyzed your query and you can achieve your requirement using SfDataGrid.DetailsViewPadding property which is used to set the space between the DetailsViewDataGrid and parent row in SfDataGrid. Please refer the below code example .


    <syncfusion:SfDataGrid x:Name="dataGrid"    




                        ItemsSource="{Binding Orders}">

Please find the sample from the below location.

Sample Location: http://www.syncfusion.com/downloads/support/forum/123774/ze/MasterDetailsViewGrid_SingleLevel_-_Selection_Issue-995073824


marco del frate
Replied On April 26, 2016 05:58 AM

Good morning,

i tried Your suggestion but it set the "border thickness" around the details grid, but not the maximum height of the details grid.
If my details are 100 rows i wuold like to see at maximum 20 (for example) and have a vertical scrollbar on the details grid, while at the moment it shows me all of them...

Thank You in advance
Best regards

Marco Del Frarte

Srinivasan Vasu [Syncfusion]
Replied On April 27, 2016 08:41 PM

Hi Marco, 

We have analyzed your query and it is not possible to add DetailsViewDataGrid within ScrollViewer. But you can achieve this by using DetailsViewTemplate support, currently we didn’t have the support for this feature. We already added it to our feature list and it can be tracked through our Features Management System. 
Please let us know if you have any concern. 

nicholas j sneed
Replied On January 24, 2018 10:21 PM

Has this feature been implemented?  If not, can you add me to the tracking.

Muthukumar Kalyanasundaram [Syncfusion]
Replied On January 25, 2018 11:33 PM

Hi Nicholas, 
Thanks for the update. 
From the given update, we can't get into your complete requirement. So could you please provide more details on your complete exact requirement and expectation on the use cases for the DetailsViewTemplate feature. Based on that only we could ensure the feasibility and provide details. 
Muthukumar K 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.