Question

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

1 Reply

AD Administrator Syncfusion Team 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.

Loader.
Up arrow icon