Making specific lines in a datagrid uneditable

Hi all,

I was wondering whether it’s possible to set some rows of a datagrid to uneditable depending on one of their fields in the database. One of the datagrids in my application is for incoming stock, and once the stock is checked, it needs to become uneditable. I would rather not use something like this:

function onCellDoubleClick(foundsetindex, columnindex, record, event) {
	if (record.checked) {
		elements.table.stopCellEditing()
	}
}

because it feels a little clunky. Is there any way I can do this without stopCellEditing()?

Thanks,
Alasdair

Hi
there is an

isEditableDataprovider

property for each column in a grid that you can assign a calculation field to, which could be set based on your criteria…