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
close icon

Change width of all columns.

Hello, What is the best way to change the width of all columns or a given range of columns? Thanks!

1 Reply

AD Administrator Syncfusion Team March 4, 2005 12:01 AM UTC

If you have not explicitly set individual column widths, then you can change all the widths by setting the this.grid.DefaultColWidth property. You can set a range of colwidth using this.grid.Model.ColWidths.SetRange. One other comment is that if you are using a GridDataBoundGrid, the grid autosizes the columsn for you, and this will step on any sizing you try to do. To avoid this, set griddataBoundGrid.AllowResizeToFit = false in Form.Load.

Loader.
Live Chat Icon For mobile
Up arrow icon