I got this code somewhere but its not permanent. when i click other cells its gone…
function onCellDoubleClick(cell) {
var row = cell.id.substring(cell.id.indexOf("#") + 1, cell.id.length);
var column = cell.id.substring(this.id.length + 1, cell.id.indexOf("#"));
if (column > 0) {
window.alert(“Cell:” + cell.id + “:” + this.getCellValueByCell(cell));
cell.style.backgroundColor = “yellow”;
}
}
Hi Joshua,
Thank you for contacting Aspose support. Please use the following snippet for your requirements.
JavaScript
function onCellDoubleClick(cell) {
cell.orgBgColor = “yellow”;
}
cell.orgBgColor = “yellow”;
}