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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Grid columns not occupying full space

Thread ID:





128660 Feb 3,2017 11:07 AM UTC Feb 6,2017 12:11 PM UTC WPF 1
Tags: SfDataGrid
Maurizio Taddei
Asked On February 3, 2017 11:07 AM UTC


I'm trying to get my grid to expand to the full width of the screen dynamically by setting the ColumnSizer="Star" . As you can see from the attached image, the problem is that the grid boundary does indeed expand to full width, but not the columns. The expected behavior only works when I set a fixed width for the parent container, but this is not what I'm looking for.

Some background: the grid lives in a user-control. The user control is loaded via the Prism.WPF Region Manager. The peculiar thing is that I'm only experiencing this problem when the user control is first initialized; when I navigate back to the control (ItemSource changed), the grid is displayed correctly.

Any thoughts.


Attachment: desiredoutcome_487cce92.rar

Jai Ganesh S [Syncfusion]
Replied On February 6, 2017 12:11 PM UTC

Hi Maurizio, 
We have prepared a sample for loading the SfDataGrid inside the UserControl and set the column sizer dynamically but we are unable to reproduce the issue. 
Could you please modify the above sample to replicate the issue? This would be more helpful for us to analyze further. 
Jai Ganesh S 


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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon 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.Close Icon