JavaScript
flex.formatItem.addHandler(function(flex, e) {
if (e.panel.cellType === wijmo.grid.CellType.Cell) {
e.cell.style.color = '';
var val = e.panel.getCellData(e.row, e.col, false);
if (typeof val === 'number' && val < 0) {
e.cell.style.color = '#dc3545';
}
}
});