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.
Unfortunately, activation email could not send to your email. Please try again.

Pressing delete will clear header and static cells

Thread ID:





30596 Jun 21,2005 01:10 AM Jun 21,2005 03:26 AM Windows Forms 1
Tags: GridControl
Christian Rattat
Asked On June 21, 2005 01:10 AM

Hi, I''m using the GridControl 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

Administrator [Syncfusion]
Replied On June 21, 2005 03:26 AM

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;


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.