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

how to change the grid''s background

Thread ID:





80385 Apr 1,2009 02:49 PM UTC Apr 3,2009 06:46 AM UTC WPF 1
Tags: GridControl
Giancarlo Aguilera
Asked On April 1, 2009 02:49 PM UTC


If you notice the screenshot in the attachment, I have a grid control with 3 columns, some blank space to its right, then followed by a scrollbar. What I would like to do is eliminate that extra space between the grid columns and the scrollbar. I have set the HorizontalAlignment and VerticalAlignment properties of the grid to Stretch but I still have this blank space. Is there anyway to eliminate this blank space? Thanks


Mohamed Suhaib Fahad A. [Syncfusion]
Replied On April 3, 2009 06:46 AM UTC

Hi Giancarlo,

Thanks for using Syncfusion Products. We currently do not have the support for Stretch. We will be including that in our later versions.

I have inherited the GridControlBase and created a sample for you that fills out the extra space with the last column's width. If you want a proportional width you can modify the OnArrangeContent method in the below sample,


Please let me know if you want any more details.

Grid.WPF Team
Syncfusion Inc.,


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

This page will automatically be redirected to the 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