Regarding grid Control

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


1 Reply

AD Administrator Syncfusion Team April 1, 2008 03:56 PM UTC

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



Loader.
Up arrow icon