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

Change width of all columns.

Thread ID:

Created:

Updated:

Platform:

Replies:

25695 Mar 3,2005 04:14 PM Mar 3,2005 07:01 PM Windows Forms 1
loading
Tags: GridControl
Matt
Asked On March 3, 2005 04:14 PM

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 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.

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.

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.

;