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

Static cell contents deleted

I have a GridControl and have set the table style to be static. I cannot edit the values that i populate in the cells, however i can delete them using the delete key. Am i missing something? GridStyleInfo staticCell = new GridStyleInfo(); staticCell.CellType = "Static"; staticCell.ReadOnly = true; grid.TableStyle = staticCell; Thanks!

1 Reply

AD Administrator Syncfusion Team February 6, 2003 02:49 PM

You can handle the ClearingCells event and set e.Cancel = true when you do want avoid specified cells beeing cleared. I have to investigate further why the .ReadOnly setting is ignored in that case. This might be a bug and we'll have to fix that. Stefan

Loader.
Live Chat Icon For mobile
Up arrow icon