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


Thread ID:





10101 Jan 22,2004 11:26 AM UTC Jan 22,2004 01:01 PM UTC WinForms 1
Tags: GridControl
Administrator [Syncfusion]
Asked On January 22, 2004 11:26 AM UTC

I have a GDBG with with Grid.AllowResizeToFit = true and each column .AutoSize = True ... but the grid columns don''t resize to their max width. Is this working in or am I missing some code. Thanks, Rob

Administrator [Syncfusion]
Replied On January 22, 2004 01:01 PM UTC

The AutoSize property only affects text as your user types into the grid. It autosizes at that point. If you want to programatically autosize columns at some point in your code, then you have to explicitly call grid.Model.ColWidths.ResizeToFit, passing in a range and options that you might want.


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