How can I edit editor properties for a cell dynamically

At run time I am adding a row to the grid using add() method. after adding the row I want to add some validation on a particular cell of the newly added row. How can I get the editor. I have tried using $$(“cxgridDetails”).getEditor(rowid), but this function does not return any value.

getEditor will return a editor object only if editor is active.

You can define validation rules for the datatable instead.