disable cell change

Is there a way to disable a cell to be changed without disabling the entire grid. I dont want users to change the value of a cell, but I still want them to be able to click on the cell and scroll up and down using the arrows.

1 Reply

AD Administrator Syncfusion Team August 31, 2006 01:48 AM UTC

Hi Charlie,

The simplest way to achieve this is by setting the value “true” to the ReadOnly property of a cell. So the user can’t able to change the value of a cell and possible to scroll using the arrows. Below is the code snippet.

this.grid[RowIndex,ColIndex].ReadOnly= true;


let us know if you need any further assistance.

Thanks,
Megavannan

Loader.
Up arrow icon