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.

Question

Thread ID:

Created:

Updated:

Platform:

Replies:

10101 Jan 22,2004 06:26 AM Jan 22,2004 08:01 AM Windows Forms 1
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On January 22, 2004 06:26 AM

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 2.0.2.0? or am I missing some code. Thanks, Rob

Administrator [Syncfusion]
Replied On January 22, 2004 08:01 AM

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.

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.

;