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 make the cells ReadOnly in GridControl?

Platform: WinForms |
Control: GridControl |
Published Date: February 9, 2015 |
Last Revised Date: February 12, 2016
Tags: styling, readonly

In GridControl, you can make the cell as read only by setting the ReadOnly Property in the GridModel or by using the QueryCellInfo Event

Using GridModel

C#

 

VB

 

Using QueryCellInfo

C#

 

VB

 

The following screenshot displays the grid after applying the properties.

Figure 1: Make the cells into ReadOnly

C:\Users\Giftline\Desktop\img.jpg Note: The read-only cells are shown in different colors

Sample Links

CS: ReadOnlyCells

VB: ReadOnlyCells

ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the 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