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.

Regarding grid Control

Thread ID:

Created:

Updated:

Platform:

Replies:

72706 Apr 1,2008 07:22 AM Apr 1,2008 11:56 AM Windows Forms 1
loading
Tags: GridControl
Navtej Singh
Asked On April 1, 2008 07:22 AM

Hi,

I am using grid control.I want some coloumns editble but coloumns are not editable But I am not able to get way and One thing more that my coloumn name is "Heart Beat Update" This name is not "Fit to coloumn" See attached picture.Please Help me I am new in syncfusion.

Plz help me


Administrator [Syncfusion]
Replied On April 1, 2008 11:56 AM

Hi Navtej,

Issue 1(To set ReadOnly)
<<<<<<<<<
To avoid Edit option for particular columns you need to set the Readonly property as true for those columns by use of below code snippet.

this.gridControl1.ColStyles[1].ReadOnly = true;

Issue 2(Column name is not Fit to coloumn size)
<<<<<<<<<
To Resize the column size according to their content you need to call below code snippet.

this.gridControl1.Model.ColWidths.ResizeToFit(GridRangeInfo.Table());

Please refer the sample for implementation and let me know if you need further asssistance.

Sample:

http://websamples.syncfusion.com/Samples/Grid.Windows/F72705/main.htm



Best regards,
Johnson



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.

;