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
close icon

Edit cells

Hi, I''m using GridDataBoundGrid, Let''s say I have data source datatable with two Columns ''ID'' and ''Name''. I want to define ID as non editable field in the grid and ''Name'' as editable one . Is it possible?

1 Reply

AD Administrator Syncfusion Team April 20, 2005 04:51 PM UTC

Try settig these properties on the column you want to be readonly: //if you have added GridBoundColumns this.grid.GridBoundColumns["ID"].StyleInfo.ReadOnly = true; this.grid.GridBoundColumns["ID"].StyleInfo.CellType = "Static"; //maybe do this??? //if you have not explicitly added GridBoundColumns this.grid.Binder.InternalColumns["ID"].StyleInfo.ReadOnly = true; this.grid.Binder.InternalColumns["ID"].StyleInfo.CellType = "Static"; //maybe do this???

Loader.
Live Chat Icon For mobile
Up arrow icon