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. Image for the cookie policy date

How to make a column readonly in a data bound grid

Can someone tell me how to make a column readonly.

1 Reply

AD Administrator Syncfusion Team September 13, 2006 04:26 AM UTC

Hi Charlie,

For the GriddataBoundGrid, there are two different ways to do this. If you want the column nCol to be readonly, you can use code such as:


//C#
this.gridControl1.ColStyles[nCol].ReadOnly = true;
this.griddataBoundGrid1.Binder.InternalColumns[nCol-1].StyleInfo.ReadOnly = true;

//VB.NET
Me.GridControl1.ColStyles(nCol).ReadOnly = True
Me.GriddataBoundGrid1.Binder.InternalColumns(nCol-1).StyleInfo.ReadOnly = True


Let me know if you have problems with either of these items.

Thanks,
Haneef

Loader.
Live Chat Icon For mobile
Up arrow icon