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.

SfDataGrid in ItemsControl

Thread ID:





130414 May 11,2017 11:11 AM May 15,2017 08:49 AM WPF 3
Tags: SfDataGrid
Asked On May 11, 2017 11:11 AM

Hello, i want to add Datagrids depending on the number of referenced lists. To achieve this i added a SfDatagrid to a ItemsControl.ItemTemplate.

Unfortunatelly when the entries need more space than available there is no Scrollbar. It's because of the infinite height, but at design time i don't know the height. Is there a way to solve this smart with SfDataGrid (don't want to set height to window height in codebehind)?


Attachment: sfDatagrid_8d0443f8.zip

Balamurugan Rajaraman [Syncfusion]
Replied On May 12, 2017 07:58 AM

Hi Patrick 
Thank you for contact Syncfusion support. 
We have checked your query “SfDataGrid in ItemsControl”. We are not able to reproduce the reported issue, its working fine in our side. we have attached the tested sample for your reference. Could you please share your Current Syncfusion product version and kindly revert us by modifying the provide tested sample to reproduce the reported issue in our side. It will be greatly helpful for us to analyze further. 
You can able to get the tested sample from the below link 
Balamurugan R 

Replied On May 12, 2017 08:20 AM


it doesn't work because i had "Auto" in the first Grid.Row. Changed to "*" and it worked.


Balamurugan Rajaraman [Syncfusion]
Replied On May 15, 2017 08:49 AM

Hi Patrick 
We are sorry for the inconvenience caused. 
We have checked your query “Scroll bar is not available while the content is large”. You can able resolve your requirement by loading the ItemControl in to a ScrollViewer.  
<ScrollViewer > 
            <RowDefinition Height="Auto"/> 
            <RowDefinition Height="*"/> 
.  .   . 
</ScrollViewer > 
We have modified the provided sample  and attached that sample for your reference you can able to download it from the below link 
Balamurugan R 


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.