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

Question

Thread ID:

Created:

Updated:

Platform:

Replies:

10101 Jan 22,2004 11:26 AM UTC Jan 22,2004 01:01 PM UTC WinForms 1
loading
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 2.0.2.0? 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.

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.

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

;