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

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 3, 2005 07:01 PM

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