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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Column Widths

Thread ID:





1663 Nov 18,2002 08:26 PM UTC Nov 19,2002 09:50 PM UTC WinForms 3
Tags: GridControl
Ivan Pelly
Asked On November 18, 2002 08:26 PM UTC

Hi - We're formatting a GridDataBoundGrid in code, setting column widths explicitly. The grid is on a tab control, so is not initially visible when the form is displayed. When the grid does become visible, it appears that, for columns whose width has been set narrower than the text in the column header, the column width is reset so that the wide column header text is accomodated. (I don't think this happened in version 1.1 of the grid) Is there a way to prevent this from happening? Thanks Ivan Pelly

Administrator [Syncfusion]
Replied On November 18, 2002 11:55 PM UTC

You can prevent the auto resize based on the column headers by setting the AutoResizeToFit property to False.

Ivan Pelly
Replied On November 19, 2002 05:15 PM UTC

I'm not seeing a property of that name - which object would that be a property of? Thanks.

Administrator [Syncfusion]
Replied On November 19, 2002 09:50 PM UTC

You will need version 1.5 which is available as an evaluation download as of last week. The property is GridDataBoundGrid.AllowResizeToFit


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

Live Chat Icon For mobile
Live Chat Icon