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

grid column width

Thread ID:

Created:

Updated:

Platform:

Replies:

39322 Jan 4,2006 03:36 PM UTC Jan 5,2006 05:47 AM UTC WinForms 1
loading
Tags: GridControl
Hrvoje Voda
Asked On January 4, 2006 03:36 PM UTC

How to make a grid column width with fix value?

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

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.

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

;