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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Change width of all columns.

Thread ID:





25695 Mar 3,2005 09:14 PM UTC Mar 4,2005 12:01 AM UTC WinForms 1
Tags: GridControl
Asked On March 3, 2005 09:14 PM UTC

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

Administrator [Syncfusion]
Replied On 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.


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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

Live Chat Icon For mobile
Live Chat Icon