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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to set style properties for Read-Only cells in Grid?

Setting a cell as ReadOnly enables ReadOnly for programmatic changes. Hence a cell set to ReadOnly cannot have any property changed (Text, BackColor, Font, ReadOnly) unless you specify to ignore the ReadOnly flag. To change a ReadOnly cell, you need to set grid.IgnoreReadOnly as true. Make necessary changes and then reset the IgnoreReadOnly property. Programmatically changing a cell value triggers the same change events that are triggered that means one event can handle the saving of all changes.

C#

 

VB

 

Sample Links

CS: ReadOnlyCell

VB: ReadOnlyCell

Article ID: Published Date: Last Revised Date: Platform: Control:
680 04/30/2011 02/12/2016 WinForms GridControl
Did you find this information helpful?
Comments
Ly Ca Tieu May 30, 2017
Hi all! Please help me! How to set the color for the cell not to edit in the gridGroupingControl1_TableControlCurrentCellStartEditing event of the grouping control. If it was, for me an example tool! Thanks
Reply
Add Comment
You must log in to leave a comment

Please sign in to access our KB

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon 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.Close Icon