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.

how to change the grid''s background

Thread ID:

Created:

Updated:

Platform:

Replies:

80385 Apr 1,2009 10:49 AM Apr 3,2009 02:46 AM WPF 1
loading
Tags: GridControl
Giancarlo Aguilera
Asked On April 1, 2009 10:49 AM

Hello,

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



Doc15_b33e19c9.zip

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

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,

http://www.syncfusion.com/uploads/redirect.aspx?file=GridToFit_7c2c44c1.zip&team=development

Please let me know if you want any more details.

Thanks,
Fahad
Grid.WPF Team
Syncfusion Inc.,


CONFIRMATION

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.

;