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.

grid column width

Thread ID:

Created:

Updated:

Platform:

Replies:

39322 Jan 4,2006 10:36 AM Jan 5,2006 12:47 AM Windows Forms 1
loading
Tags: GridControl
Hrvoje Voda
Asked On January 4, 2006 10:36 AM

How to make a grid column width with fix value?

Administrator [Syncfusion]
Replied On January 5, 2006 12:47 AM

Hi Hrvoje, To change, the column width in GridControll: // To set default column width for all Columns this.gridControl1.DefaultColWidth = 40; // For a particular column this.gridControl1.ColWidths[3] = 250; // To set a range of columns this.gridControl1.ColWidths.SetRange(1,5,50); To change, the column width in GridDataBoundGrid Control: this.gridDataBoundGrid1.ResizeToFit = false; // To set default column width for all Columns this.gridDataBoundGrid1.DefaultColWidth = 40; // For a particular column this.gridDataBoundGrid1.Model.ColWidths[3] = 250; // To set a range of columns this.gridDataBoundGrid1.Model.ColWidths.SetRange(1,5,50); Regards, Madhan.

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.

;