# Set table cell to not editable

**URL:** <https://forum.inductiveautomation.com/t/set-table-cell-to-not-editable/10699>\
**Category:** General Discussion\
**Created:** [October 30, 2015, 4:06pm UTC](https://forum.inductiveautomation.com/t/set-table-cell-to-not-editable/10699 "2015-10-30T16:06:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jerry101](https://avatars.discourse-cdn.com/v4/letter/j/ecb155/32.png) [@jerry101](https://forum.inductiveautomation.com/u/jerry101)\
**Post date:** [October 30, 2015, 4:06pm UTC](https://forum.inductiveautomation.com/t/set-table-cell-to-not-editable/10699/1 "2015-10-30T16:06:20Z")

</div>

I am trying to figure out how I can set specific table cells to not be editable. I have a column that is set to “Editable” but I have specific values in that column that i do not want the user to be able to edit. Any suggestions would be great!

---

<div class="post-metadata">

**Author:** ![MMaynard](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mmaynard/32/3366_2.png) [@MMaynard](https://forum.inductiveautomation.com/u/MMaynard)\
**Post date:** [October 30, 2015, 5:26pm UTC](https://forum.inductiveautomation.com/t/set-table-cell-to-not-editable/10699/2 "2015-10-30T17:26:00Z")

</div>

I don’t think there is a way to disable editing per cell, but you could always check the value of the cell before saving and ignore changes. Or add a hidden column with 1 for editable, 0 for not and check that in OnCellEdited

```auto
if self.data.getValueAt(rowIndex,YourColumnNumber)=="0":
	pass
else:
   YourUpdateQuery()
```
