I am trying to validate a column for duplicate rows and the cell type in the grid is ‘coro’ how ever I don’t know how to programatically change the text in the ‘coro’ cell for that row. I can only change the cell value. How can I update the text as well?
[code] personDoesExsits(nValue, oValue, rowId) {
var doesExist = false;
this.grid.forEachRow(function (id) {
let cellValue = this.grid.cells(id, this.personNameColumn).getValue();
let cellText = this.grid.cells(id, this.personNameColumn).getTitle();
if (rowId !== id)
if (cellValue === nValue || cellText === oValue || cellValue === oValue || cellText === nValue) {
doesExist = true;
//sets the cells value to the old value
this.grid.cells(rowId, this.personNameColumn).setValue(cellValue);
//how can I set the cell text to the old value
....
}
}.bind(this));
return doesExist;
}[/code]