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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Change width of all columns.

Thread ID:

Created:

Updated:

Platform:

Replies:

25695 Mar 3,2005 09:14 PM UTC Mar 4,2005 12:01 AM UTC WinForms 1
loading
Tags: GridControl
Matt
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.

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

;