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

Read only cells

Thread ID:





121114 Nov 11,2015 03:12 PM UTC Nov 13,2015 04:36 AM UTC ASP.NET Web Forms 3
Tags: Grid
Jorge Pampin
Asked On November 11, 2015 03:12 PM UTC


How to set read only some cells based on their data?


Gowthami V [Syncfusion]
Replied On November 12, 2015 12:49 PM UTC

Hi Jorge,

Thanks for using Syncfusion products.

We can understand from your query that you are using “Batch” edit mode since you have mentioned like read only cells.

We can achieve your requirement using “CellEdit” event of the grid as follows,

<ej:Grid ID="OrdersGrid" runat="server" >
            <ClientSideEvents CellEdit="cellEdit"/>
. . . .
<EditSettings AllowEditing="True" AllowAdding="True" AllowDeleting="True" EditMode="batch" ></EditSettings>
. . .  .

<script type="text/javascript">

        function cellEdit(args)


//We have prevent editing for the cell which contains LastName as “Beckett”

            if (args.columnName == "LastName" && args.value == "Beckett")

                args.cancel = true;


If we misunderstood your requirement please provide more details about your requirement like in which editing mode you want to change the cells as read only and the provided information will help to analyze the requirement and provide you the response as early as possible.

Gowthami V.

Jorge Pampin
Replied On November 12, 2015 12:59 PM UTC


This is perfect! Thank you!

Gowthami V [Syncfusion]
Replied On November 13, 2015 04:36 AM UTC

Hi Jorge,
We are happy to hear that your requirement has been achieved.
Get back to us if you need further assistance.
Thanks & Regards,
Gowthami V.


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.

Please sign in to access our forum

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