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

Pressing delete will clear header and static cells

Hi, I''m using the GridControl 3.0.1.0. When I select a bunch of cells and there are static cells or header cells included and then I press the delete key, the cells are entirely cleared. I did not find any event where I can prevent this. For my purposes the best was to either configure for each cell if it can be cleared or an event where I can decide on a per cell basis whether a cell will be cleared or not. Is there anything like that? Regards, Chris

1 Reply

AD Administrator Syncfusion Team June 21, 2005 07:26 AM UTC

To prevent a cell in a GridControl from being cleared when you press delete, you can set its style.ReadOnly property to true. grid[0,2].ReadOnly = true;

Loader.
Live Chat Icon For mobile
Up arrow icon