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 07:49 PM UTC

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.
Up arrow icon